Re: global register variables for gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



biffle <neurokorn@xxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux