Compiling without the use of static registers in IA-64
Jim Wilson
wilson@specifix.com
Tue Mar 13 21:42:00 GMT 2007
mcrosier@ncsu.edu wrote:
> I was wondering if anyone knew how I could modify gcc to not use static
> general purpose registers on an IA-64 machine?
Besides the -ffixed-reg option Vlad mentioned, there is also a
documented IA-64 specific option for this. See the docs. No reason why
this option needs to be IA-64 specific though; it was just implemented
that way for convenience before the IA-64 port was contributed to the FSF.
You may have trouble with 64-bit constants if you disable r2/r3. There
are only four regs that work with the addl instruction, and you have
just disallowed all of them. You might need other changes to make this
work.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
More information about the Gcc
mailing list