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: Problem with symbol definitions in recursive macros (gas)


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


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