[Top][All Lists]

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

Re: [avr-gcc-list] PROGMEM variable placement

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] PROGMEM variable placement
Date: Tue, 23 Aug 2005 20:43:03 +0200 (MET DST)

Lars Noschinski <address@hidden> wrote:

> I'm looking at some assembler code avr-gcc spit and I'm a bit
> puzzled.

Actually, you're looking at the disassembler output it seems.

Just call the compiler with any options you'd normally use, replace
the -c by a -S, and change the -o outfile option suitably (or leave it
away, the file will then be named by the root of the .c file with a .s
appended).  That's the assembler code generated by the compiler, just
have a look into it.

> and the first one ends up in a section named <table_a> in the lss
> file, the other one before this in <__ctors_end>.

> Why does the second table end up there?

I guess it's rather an artefact of the disassembler.

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

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