This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: how to show the assembly content after being expanded by .marco
- From: Nick Clifton <nickc at redhat dot com>
- To: yoma sophian <sophian dot yoma at gmail dot com>, binutils at sourceware dot org
- Date: Tue, 6 Nov 2018 15:26:35 +0000
- Subject: Re: how to show the assembly content after being expanded by .marco
- References: <CADUS3okLd=FfFQT02WdAkAXBb4aZZZff5qMiprGqep52xe=hGA@mail.gmail.com>
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