List-Files with GNU
Clifford Wolf
clifford@clifford.at
Mon Oct 18 15:54:00 GMT 2004
On Mon, Oct 18, 2004 at 11:45:10AM +0200, Steven Bosscher wrote:
> With some effort, you may be able to match the line numbers of the
> original C source with the assembly output, if you can read DWARF
> and ELF :-)
If you compile with -g -dA the assembler output has comments such as:
.Ltext0:
.globl demo
.type demo, @function
demo:
.LFB3:
# demo.c:2
.loc 1 2 0
# basic block 0
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
# demo.c:3
.loc 1 3 0
movl b, %edx
movl c, %eax
incl %eax
movl %eax, a(,%edx,4)
# demo.c:4
.loc 1 4 0
popl %ebp
ret
.LFE3:
.size demo, .-demo
--
_________ ____ __ __ $_ = q 7nz!y="Ccv'Dpgiutvcbb'oj'Pocj'*'qqq[
/ ___/ __ \/ __ `/ | /| / / ej`q[iv`";!|=1;!y=~t%].[%nz!z=!1;gps]1..6[{
/ /__/ / / / /_/ /| |/ |/ / qsjou"!z\c";tfmfdu]voefg,voefg,voefg,0.05[;
\___/_/ /_/\__, / |__/|__/ !z=~t/].[/dis]pse]!1[^!_[/fh;}qsjou !z;%fh;
CCC Wien /____/www.cngw.org qsjou "\o"7;s/\n//g;y/[b-za]!/)a-z($/;eval;
Relax, its only ONES and ZEROS!
More information about the Gcc
mailing list