3.2.1.4 -ah
-ah
requests a high-level language listing. High-level
listings require that the assembly source code is generated by a compiler, a debugging
option like -g
is given to the compiler, and assembly listings
(-al
) are requested. -al
requests an output
program assembly listing. The example below shows a listing that was generated using the
-alh
command line option.
Listing File Generated with -alh 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
7 .type _main,@function
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