AVR-GCC compiler options
Daniel O'Connor
doconnor at gsoft.com.au
Sun Mar 22 23:06:27 PDT 2009
On Monday 23 March 2009 11:38:01 Ruchi Varshney wrote:
> Hi,I am looking for a way to intermix source code with the asm code
> generated when I compile a .c file "avr-gcc -S" option.
> Right now, I know that when I use "avr-objdump -S" on the .s file obtained
> from avr-gcc, I can see that the output is intermixes with the actual
> source code from the .c file. Is there a way I can get the source code to
> appear in the .s file when I use "avr-gcc"?
You'd be better off asking this question on the avr-gcc list.
You can pass -Wa,-adhlmsn=foo.lst to gcc and it will make a .lst which will do
what I think you want..
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090323/46a4f3fa/attachment.pgp
More information about the freebsd-hackers
mailing list