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: Variables from a C++ namespace in GNU inline assembler


Johannes Schauer <j.schauer@email.de> writes:

> I wonder how to use C++ namespace variables in gnu inline assembler.
> In intel syntax (VC++) it looks like this:
>
> [Foo::Bar]
>
> But i am unable to find a proper way of doing the same thing in gas as
> it tells me:
>
> Error: junk `::Bar' after expression
>
> whenever i try something which involves the double colon notation.
> Is there a sane way to circumvent this issue?

In GNU assembler you don't refer to symbols directly in the assembly
code.  You refer to them as operands.  For details please read the
friendly gcc manual.

Ian


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