linux-mips
[Top] [All Lists]

Re: mips5kc - cpu registers

To: <Amit.Lubovsky@infineon.com>, <linux-mips@linux-mips.org>
Subject: Re: mips5kc - cpu registers
From: "Kevin D. Kissell" <kevink@mips.com>
Date: Mon, 31 Mar 2003 19:21:29 +0200
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <04C8EDC5AE3FD611ABE40002B39CF69B07F37F@ntah901e.savan.com>
Sender: linux-mips-bounce@linux-mips.org
In general, gcc (and most other compilers)
will do this for you automatically if you enable
any reasonable level of optimization.  There
is no need to designate the variable as "FAST",
one simply needs to avoid having it be global,
static, or volatile.

----- Original Message ----- 
From: <Amit.Lubovsky@infineon.com>
To: <linux-mips@linux-mips.org>
Sent: Monday, March 31, 2003 6:45 PM
Subject: mips5kc - cpu registers


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

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