This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: global register variables for gcc


biffle <neurokorn@aol.com> writes:

> Global register variables speed up some programs very substantially.
> I use an Athlon64, which has many registers beyond the usual Pentium 4 set.
> Is it possible to use these new registers for global register variables?

Yes.

> If so, how do I specify them?

register int i asm ("r8"); /* through r15 */

Of course you have to be compiling and running in 64-bit mode.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]