This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch AVR: fix call prologue saves for avr6 - commited.



On May 26, 2008, at 12:17 AM, Anatoly Sokolov wrote:


Hi.

If function prologue code placed above low 128K code memory then linker add
JMP instruction, the code become on 2 words is longer. Hence "call_prologue"
optimization to become less useful. If for devices with up to 128K code
memory it is useful when it is necessary to store 6 regs in a stack, that for
devices with more memory, 6 regs when function prologue code placed in low
128K and 8 regs when function prologue code placed in high 128K. Location of
code will be known in link time, therefore when choosing of this optimization
should be use average value - 7.

Yes, it makes sense. Thanks.

Tristan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]