This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]