3.2.1.1 -ac

-ac omits false conditionals from a listing. Any lines that are not assembled because of a false .if or .ifdef (or the .else of a true .if or .ifdef) will be omitted from the listing. The first example shows a listing where the -ac option was not used. The second example shows a listing for the same source where the -ac option was used.

Note: Some lines have been omitted, due to the -ac option; i.e., lines 3-8, 14, 21, 24, 29 and 31.

Listing File Generated with -al Command Line Option

Listing:  example2.1.s            page 1

   1              	.data
   2                 	.if 0
   3                 	  .if 1
   4                 	  .endif
   5                 	  .long 0
   6                 	  .if 0
   7                 	    .long 0
   8                 	  .endif
   9                 	.else
  10                 	  .if 1
  11                 	  .endif
  12 0000 02 00 00 00   .long 2
  13                 	  .if 0
  14                 	    .long 3
  15                 	  .else
  16 0004 04 00 00 00     .long 4
  17                 	  .endif
  18                 	.endif
  19                 	
  20                 	.if 0
  21                 	  .long 5
  22                 	.elseif 1
  23                 	  .if 0
  24                 	    .long 6
  25                 	  .elseif 1
  26 0008 07 00 00 00     .long 7
  27                 	  .endif
  28                 	.elseif 1
  29                 	  .long 8
  30                 	.else
  31                 	  .long 9
  32                 	.endif

Listing File Generated with -alc Command Line Option

Listing:  example2.1.s            page 1

   1              	.data
   2                 	.if 0
   9                 	.else
  10                 	  .if 1
  11                 	  .endif
  12 0000 02 00 00 00   .long 2
  13                 	  .if 0
  15                 	  .else
  16 0004 04 00 00 00     .long 4
  17                 	  .endif
  18                 	.endif
  19                 	
  20                 	.if 0
  22                 	.elseif 1
  23                 	  .if 0
  25                 	  .elseif 1
  26 0008 07 00 00 00     .long 7
  27                 	  .endif
  28                 	.elseif 1
  30                 	.else
  32                 	.endif