This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to dedicate a register for special purpose in gcc?
- From: Daniel Jacobowitz <drow at false dot org>
- To: ???? <wu dot andrew dot xi at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 Jan 2007 23:57:38 -0500
- Subject: Re: How to dedicate a register for special purpose in gcc?
- References: <f63285730701042053p5c8a2a0ar1935274174f27e8e@mail.gmail.com>
On Fri, Jan 05, 2007 at 12:53:16PM +0800, ???? wrote:
> Hi,
> How can I dedicate a register for special purpose, that means,
> the dedicated register only appears in the inserted code of my own,
> but never allocated in the rest of code. I have read some doc(gcc int)
> about the register usage but still have no idea.
>
> I would *really* appreciate any help I can get on this issue!
Take a look at -ffixed-REG.
--
Daniel Jacobowitz
CodeSourcery