Re: mips5kc - cpu registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "amit" == Amit Lubovsky <Amit.Lubovsky@infineon.com> writes:

amit> Hi,
amit> is there a possibility to use cpu registers in the code (temporarily)
amit> instead of allocating 
amit> automatic variables something like:
amit> func a()
amit> {
amit> FAST int, i, tmp;
amit> tmp = ...
amit> ...
amit> }

theorically, 
             register int i, tmp;

should de that, but I think that no modern compiler will honour the
register keyword.  Anyways, you should be doing something really
strange for the  compiler not to choose a register for a local
variable when it should automagically.

Later, Juan.


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux