[Top] [All Lists]

Re: mips5kc - cpu registers

Subject: Re: mips5kc - cpu registers
From: Juan Quintela <>
Date: Mon, 31 Mar 2003 18:05:07 +0200
In-reply-to: <> ('s message of "Mon, 31 Mar 2003 18:45:43 +0200")
Original-recipient: rfc822;
References: <>
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2.93
>>>>> "amit" == Amit Lubovsky <> 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> }

             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

<Prev in Thread] Current Thread [Next in Thread>