This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Problem with symbol definitions in recursive macros (gas)
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: "John Graham" <johngavingraham at googlemail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Mon, 08 Mar 2010 08:28:03 +0000
- Subject: Re: Problem with symbol definitions in recursive macros (gas)
- References: <94cf76f1003051842t2703b212w6335cad6ae24fd77@mail.gmail.com>
>>> John Graham <johngavingraham@googlemail.com> 06.03.10 03:42 >>>
>.macro example from, to
>thing\from :
This suggests that you expect ...
>.long \from
>.if \to-\from
>example "(\from+1)",\to
... the parenthesized expression here to be evaluated, which isn't the
case. I think you can do this only with alternative macro syntax.
>.endif
>.endm
As a general hint: Command line option -alm is your friend when
analyzing problems with macro expansion.
Jan