[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Use of registers
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Use of registers |
Date: |
Thu, 7 Oct 2004 09:45:59 +0200 (MET DST) |
"Knut.Schwichtenberg" <address@hidden> wrote:
> Is there any option to prevent the compiler to use all registers and
> leave some unused ...
See the FAQ, you gotta bind global variables to registers in the C
compiler. In that case, you do want to create dummy variables you
aren't going to use in the C program itself but only in the assembler
portion.
However, keep in mind that the compiler-generated code will suck more
the less registers the compiler has available for optimization.
--
J"org Wunsch Unix support engineer
Wir stellen aus! Auf der SYSTEMS 2004 vom 18.-22. Oktober in München
Halle B 3, Stand 320-206 (Partner-Stand von Sun Microsystems)
Halle B 2, Stand 605 "Die Musterfirma"