This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Preprocessor for assembler macros?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Andrew Haley <aph at redhat dot com>, Ian Lance Taylor <iant at google dot com>, binutils at sourceware dot org
- Date: Mon, 09 Mar 2009 15:03:24 +0000
- Subject: Re: Preprocessor for assembler macros?
- References: <200903081131.49815@marek.priv.at> <m3zlfv8ecc.fsf@google.com> <49B4DF6A.9000908@redhat.com> <20090309132145.GB16858@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Mon, Mar 09, 2009 at 09:20:42AM +0000, Andrew Haley wrote:
>> Ian Lance Taylor wrote:
>>>> I'm looking for a way to get inbetween the assembler macro processor
>>>> and the assembler. I'd like to get the assembler sources mostly
>>>> as-is, but with the macros used therein already expanded.
>>> As far as I know there is no straightforward way to do this. (There
>>> certainly was no way to do it back when I implemented macros in gas.)
>> OK, I have to ask. If you can't see the effect of macro expansion, how
>> on Earth did you test the macro processor. I even imagine how you'd
>> develop a macro processor whose output you couldn't see. :-)
>
> Objdump? :-) It's a lot closer to assembly source than to C source.
-Wa,am?
Both these let you see and debug the macro expansion, but Ian's point is
that what you get isn't anything you can just feed straight back into gas.
There's no direct equivalent of -E.
cheers,
DaveK