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

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

Re: [avr-gcc-list] Avoiding copy_data in config/avr/avr.c avr_file_start


From: E. Weddington
Subject: Re: [avr-gcc-list] Avoiding copy_data in config/avr/avr.c avr_file_start()?
Date: Wed, 27 Jul 2005 22:30:55 -0600
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Ben Jackson wrote:

I got the impression from libgcc.S that copy_data wouldn't exist if
it wasn't needed, but I finally found in avr_file_start:

 /* FIXME: output these only if there is anything in the .data / .bss
    sections - some code size could be saved by not linking in the
    initialization code from libgcc if one or both sections are empty.  */
 fputs ("\t.global __do_copy_data\n", asm_out_file);
 fputs ("\t.global __do_clear_bss\n", asm_out_file);

I don't know gcc internals, so is this just not visible from
avr_file_start, or just not yet done?  If someone gives me a hint I'll
look into it.
IIRC, this is documented as GCC bug #18145:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18145>
Well, technically it's an enhancement request.

Eric




reply via email to

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