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

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

Re: [avr-gcc-list] data segment init code & .data size calculations


From: E. Weddington
Subject: Re: [avr-gcc-list] data segment init code & .data size calculations
Date: Mon, 13 Sep 2004 09:53:00 -0600
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Joerg Wunsch wrote:

A few bytes of flash (22) will be spared in the future when
avr-gcc/ld sees that the .data segment is of size zero and then the
initializer code is not necessary any more :-)

It's not the linker that is supposed to notice that, rather the
compiler that should know when to place the references to the
.do_copy_* loops into the generated assembler code.  The linker will
then only link them in when they are needed (the latter part is
supposed to work already, but right now, the compiler always places
these references into the code).
Also see the FIXME note in the GCC source code, avr.c, that talks about this very thing.


reply via email to

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