[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] register variable considered BAD
From: |
Ryan Yeske |
Subject: |
Re: [RP] register variable considered BAD |
Date: |
06 May 2001 17:02:07 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Jonathan Walther <address@hidden> writes:
> Was reading the Gnu CC manual again. It had this interesting
> tidbit: When the address of a variable is taken, it will never
> be assigned a register. EVER. Even if the register keyword
> was used. I believe this is the case with the code in ratpoison
> that does use register, and that would be why I noticed no
> code difference in the generated object files when I compiled
> with and without the register keyword. If you want to actually
> use registers, don't give the compiler hints, use inline assembly.
So in short, the register keyword does no good and does no harm with
gcc. What about other compilers?
Ryan