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.4.s page 1
1 .file "example2.4.c"
2 .text
3 .align 2
4 .def _main
5 .val _main
6 .scl 2
7 .type 044
8 .endef
9 .global _main ; export
10 _main:
11 .def .bf
12 .val .
13 .scl 101
1:example2.4.c **** extern int ADD (int, int);
2:example2.4.c ****
3:example2.4.c **** int
4:example2.4.c **** main(void)
5:example2.4.c **** {
14 .line 5
15 .endef
16 .set _ ___PA_ ___,1
17 000000 00 00 FA lnk #0
18
6:example2.4.c **** return ADD(4, 5);
19 .ln 6
20 000002 51 00 20 mov #5,w1
21 000004 40 00 20 mov #4,w0
22 000006 00 00 02 call _ADD
22 00 00 00
7:example2.4.c **** }
23 .ln 7
24 .def .ef
25 .val .
26 .scl 101
27 .line 7
28 .endef
29
30 00000a 00 80 FA ulnk
31 00000c 00 00 06 return
32 .set _ ___PA_ ___,0
33 .def _main
34 .val .
35 .scl -1
36 .endef
37
38 .end