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

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

RE: [avr-gcc-list] code size: .text vs .data


From: Pat Deegan
Subject: RE: [avr-gcc-list] code size: .text vs .data
Date: Fri, 11 Jun 2004 14:30:23 -0400

Hi,

On Fri, 2004-06-11 at 14:17, Theodore A. Roth wrote:
> 
> If you aren't passing the -mmcu=atmega32 option to the avr-gcc link
> command, it will default to using the <= 8K linker script.

Doh!  It's magic: adding " -mmcu=$(MCU)  " to the LDFLAGS in the
Makefile does the trick...  

All the dev so far had been done on the stock chip from the STK500 which
seems to coincidentally match the default linker behavior.

Anyone know how the sections are arranged, where this is setup in the
avr-gcc package and how to modify the settings (though this may never be
necessary)?

Thanks to all for your help,
-- 
Pat Deegan
http://www.psychogenic.com/
PGP Key: http://www.keyserver.net 0x03F86A50



reply via email to

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