(Answer) (Category) ImageCraft Products FAQ-O-Matic : (Category) ICCAVR V6 - and - ICC7 for AVR :
I am looking at the listing file, why does ICCAVR compiler uses the same register for more than one (local) variable? Is this a bug?
This is not a bug. The compiler does analysis on the usage "lifetime" of the local variables and allocate them to the same registers if possible. This allows more local variables to be allocated to registers than otherwise possible.
kristil@imagecraft.com
[Append to This Answer]
Previous: (Answer) Function pointers do not seem to have the correct addresses. Why?
Next: (Answer) How do I set up the compiler to use external 32K SRAM at the upper 32 K address?
This document is: http://www.dragonsgate.net/cgi-bin/FAQ/fom?file=124
[Search] [Appearance]
This is a Faq-O-Matic 2.721.
This FAQ administered by Richard Man