Problem with symbol definitions in recursive macros (gas)

Jan Beulich JBeulich@novell.com
Mon Mar 8 10:24:00 GMT 2010


>>> 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



More information about the Binutils mailing list