How to access a static member variable within __asm { }

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: ZZT (a_at_b.c)
Date: 02/26/04


Date: Thu, 26 Feb 2004 10:35:30 +0100

Hello everybody,

I am trying to access a static member variable within an __asm { }
code but the compiler always tells me that its not know. If you access
the variable outside the __asm { } code its working. When I try to
access inside, I can only access variables that are declared/defined
within the same function.
I tryed "Class::variable" and "variable" but nothing is recognized from
the compiler. Do you have any hint to access the static variables,
without defining pointer-variables in the function?

Best Regards



Relevant Pages

  • optimizers are overrated
    ... I started learning ASM not long ago to improve my understanding of the ... The first function uses a typical C style loop to ... which one is more efficient all you guys would reply "the compiler will most ... so my "write C like ASM" optimization worked. ...
    (comp.lang.c)
  • XML-based object orientated pre-Assembler
    ... I have been promising an object orientated ASM IDE for a while now. ... Trying to make the best of what is already here, I have made a compiler, ... that will parse XML code and output ASM files. ...
    (alt.lang.asm)
  • Re: C++ in ternms of C
    ... >about class and struct difference. ... How is the private and public part ... I tried to analise the ASM file produ ced my the VC++ compil er. ... >epresented by the c++ compiler in translation to intermediate stage. ...
    (microsoft.public.vc.language)
  • Re: [OT] Sed and Awk
    ... including leaving out the compiler and the libs necessary to ... then ASM would be the way to go. ... > debugging a suspected compiler bug? ... > the same assembly as nested ifs from my target compiler). ...
    (comp.unix.shell)
  • Re: TI 28xx compiler intrinsics / inline assembly / other ways to help the compiler be efficient
    ... just 10 CPU cycles is 0.4% of the CPU. ... getting a sense how the compiler handles ... Keeping C with C and asm with asm is much better both from the style and the efficiency standpoints. ... The most dumb way to do that is by passing a pointer to the asm function. ...
    (comp.dsp)