bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GAS: Can't seem to get "\@" to work from within macro


From: Nick Clifton
Subject: Re: GAS: Can't seem to get "\@" to work from within macro
Date: Tue, 7 Nov 2000 12:15:23 -0800

Hi Hai,

: To get \@ to evaluate, I had to enclose it in ""s ("\@").

You do not mention which toolchain you are using.  This is important
as for example, on some toolchains the '@' character is a comment
character.

The syntax does work, for example on the SH toolchain, where I was
able to assemble your testcases (without enclosing the \@ inside
double quotes).  On the ARM toolchain however, the testcases do not
work, because @ starts a line comment.

If you want to create (and use) local labels inside a macro then I
would suggest that you use the Local Symbol Name feature instead, like
this:

  .macro loop
  0:
    const GR80, 0x0000
  .endm

    loop
    loop


Cheers
        Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]