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

   1                            .file "example2.3.c"
   2                            .text
   3                            .align  2
   9                            .global _main  ; export
  10                    _main:
   1:example2.3.c **** extern int ADD (int, int);
   2:example2.3.c ****
   3:example2.3.c **** int
   4:example2.3.c **** main(void)
   5:example2.3.c **** {
  16                            .set    _ ___PA_ ___,1
  17 000000  00 00 FA           lnk     #0
  18
   6:example2.3.c ****   return ADD(4, 5);
  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.3.c **** }
  29
  30 00000a  00 80 FA           ulnk
  31 00000c  00 00 06           return
  32                            .set    _ ___PA_ ___,0
  37
  38                            .end