3.2.1.2 -ad
-ad
omits debugging directives from the listing. This
is useful if a compiler that was given a debugging option generated the assembly source
code. The compiler-generated debugging directives will not clutter the listing. The
example below shows a listing using both the d
and h
suboptions. Compared to using the h
sub-option alone (see the next
section), the listing is much cleaner.
Listing File Generated with -alhd Command Line Option
Listing: example2.3.s page 1
1 .file "example2.3.c"
2 .section .text,code
3 .Ltext0:
4 .section .text,code
5 .align 4
6 .global _main ; export
8 _main:
9 .LFB0:
10 .file 1 "example2.3.c"
1:example2.3.c ****
2:example2.3.c **** extern int ADD (int, int);
3:example2.3.c ****
4:example2.3.c **** int
5:example2.3.c **** main(void)
6:example2.3.c **** {
11 .loc 1 6 1
12 .set ___PA___,1
13 000000 0E 72 lnk #0
14 .LCFI0:
7:example2.3.c **** return ADD(4, 5);
15 000002 00 00 .loc 1 7 10
16 000004 59 00 10 88 movs.l #0x5,w1
17 000008 49 00 00 88 movs.l #0x4,w0
18 00000c 02 00 00 D4 rcall _ADD
8:example2.3.c **** }
19 .loc 1 8 1
20 000010 03 72 ulnk
21 000012 01 72 return
22
23 .set ___PA___,0