[aspectc-user] _asm in msvc unrecognized

Daniel Lohmann daniel.lohmann at informatik.uni-erlangen.de
Fri Apr 22 14:36:13 CEST 2005


Olaf Spinczyk wrote:

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

Just did check it, it works with __asm (2 leading underscores), but not 
with _asm.

Daniel


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