[aspectc-user] _asm in msvc unrecognized

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Fri Apr 22 14:27:43 CEST 2005


Hi,

I remember that we implemented support for this syntax. Did you try it 
in the Visual Studio Add-In? Did you try asm or __asm instead of _asm?

Matthias can definitely tell you more about that.

Olaf


Daniel Lohmann wrote:
> Seems to be a parser problem with the inline assember syntax of MSVC. As 
> a workaround you may use #ifdef __puma:
> 
> int main() {
>   #ifdef __puma
>    _asm {
>        mov eax, 0
>    }
> #endif
> }
> 
> 
> Daniel
> 
> 
> 
> Hans VB wrote:
> 
>> Hey,
>>
>> Using the MS VC 2003 Toolkit command line compiler, the following file :
>>
>> int main() {
>>    _asm {
>>        mov eax,0
>>    }
>>    return 0;
>> }
>>
>> yields following error (using ac++ WPT) :
>>
>> main.cpp:2: error: invalid statement near token `{'
>>
>> Is this known? Any workarounds?
>>
>> Greets,
>> Hans
>>
>> _______________________________________________
>> aspectc-user mailing list
>> aspectc-user at aspectc.org
>> http://www.aspectc.org/mailman/listinfo/aspectc-user
> 
> 
> 
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user




More information about the aspectc-user mailing list