how to show the assembly content after being expanded by .marco

Nick Clifton nickc@redhat.com
Tue Nov 6 15:26:00 GMT 2018


Hi yoma,

> Is there any assembler  option can let me see  the final assembly
> content that being expanded by .marco?

The listing options are probably what you want.  For example:

  % cat foo.s
  .macro foo arg
  .word \arg
  .endm

  foo 1
  foo 2

  % as -alm foo.s
  [...]
   1              		.macro foo arg
   2              		.word \arg
   3              		.endm
   4              	
   5              		foo 1
   5 0000 0100     	>  .word 1
   6              		foo 2
   6 0002 0200     	>  .word 2

Cheers
  Nick



More information about the Binutils mailing list