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

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

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


From: Lars Noschinski
Subject: Re: [avr-gcc-list] PROGMEM variable placement
Date: Tue, 23 Aug 2005 21:28:46 +0200
User-agent: mutt-ng devel (Linux)

* Joerg Wunsch <address@hidden> [2005-08-23 21:11]:

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.

Possibly. I chose that, because it was the output, which was easiest to
read ;)

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.

I just want to find out, how gcc assembles my C code, so it's very
helpful to have those comments.

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.

Ok, thanks.

Attachment: pgpqrDiTMlrBd.pgp
Description: PGP signature


reply via email to

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