Antwort: Re: C statements in assembler listing

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

 



The actual c code is not entered in the assembler file using this option. 
I get a lot of symbols and other info from the c file but not the code 
lines themselves.
I'm using -g3 and -O1 Option.

Regards
Gunnar




Diego Novillo <dnovillo@xxxxxxxxxx> 
Gesendet von: gcc-help-owner@xxxxxxxxxxx
03.08.2007 16:44

An
gunnar.piel@xxxxxxx
Kopie
gcc-help@xxxxxxxxxxx
Thema
Re: C statements in assembler listing






On 8/3/07 10:34 AM, gunnar.piel@xxxxxxx wrote:

> or another way to get a mixed display of C-code and generated assembler 
> code with GCC.

You need to pass the options -ahl to the assembler ('l' for listing and
'h' for high-level source).  And you also need to compile with -g to
produce debugging output:

$ gcc -Wa,-ahl -g file.c

Should do the trick.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux