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: PETRIK Gergely
Subject: RE: [avr-gcc-list] code size: .text vs .data
Date: Fri, 11 Jun 2004 20:14:11 +0200 (CEST)

Hi!

You need a -mmcu=atmega32 flag for the compiler. I don't
know exactly, what is the default value for this option, but
it's an 8k device, I think (maybe 8515). That's why you get
the 8k barrier.

--
G

On Fri, 11 Jun 2004, Pat Deegan wrote:

> Hello,
>
> On Fri, 2004-06-11 at 13:32, Dave Hylands wrote:
> > You need to modify your linker script. This is what defines how much
> > space goes where.
> >
> > What's the exact command that you used to link your program?
>
> Well, I'm using the generic Makefile we put together to build the
> program (see http://electrons.psychogenic.com/avr/linux/makefile.php).
>
> Using this, the final step is simply:
>
>   avr-gcc -Wl,-Map,a.out.map -lm  -o a.out a.o b.o c.o ...
>
> I am uncertain as to what's going on behind the scenes.
>
>
> Where can I find out how to tweak the linking or do you have any
> suggestions?
>

--
G



reply via email to

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