avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] ATmega256x trampolines? (Was: Why is there1200bytes o


From: Stu Bell
Subject: RE: [avr-gcc-list] ATmega256x trampolines? (Was: Why is there1200bytes of zeroes in my code?)
Date: Wed, 21 Mar 2007 08:58:51 -0600

Thanks for the hint!  I shall try this first thing this morning.

Best regards, 

Stu Bell 
DataPlay (DPHI, Inc.) 


-----Original Message-----

Hi, you could solve your problem by using -Wl,--relax . The linker first starts 
with worst-case assumptions that imply that it needs a trampoline for any 
function. 

The linker thus reserves the space for all possibly needed trampolines and 
starts the application code behind the trampolines. If it turns out that not 
all of the trampolines are actually needed, this space remains reserved by 
default. 

The space is freed afterwards when using the linker relaxation.

Yours, 

Björn.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]