Do not spill variables/registers on the stack
Drasko DRASKOVIC
drasko.draskovic@gmail.com
Wed Feb 2 22:56:00 GMT 2011
On Wed, Feb 2, 2011 at 11:27 PM, Ian Lance Taylor <iant@google.com> wrote:
> As far as I know gcc does ignore the register keyword at optimization
> levels about -O0
OK, thanks. That completes Jeffs statement from before, I guess...
> except for register asm
Stefan, I guess embedded asm would be your only solution...
> and forbidding taking the
> address of a variable marked as register.
This one should be forbidden at all optimozetion level, as C standard
forbids it (C++ does not, though).
BR,
Drasko
More information about the Gcc-help
mailing list