__asm...

Paulo Moura Guedes moura at kdewebdev.org
Thu Feb 16 00:27:47 CET 2006


It seems gcc support a different inline assembly sintax: 
asm("assembly code");

If anyone who knows assembly would be so kind to port this to gcc would be 
great. Documentation can be found here:
http://www-128.ibm.com/developerworks/library/l-ia.html
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

Paulo

On Wednesday 15 February 2006 18:44, Paulo Jorge Guedes wrote:
> Hi,
>
> I think __asm doesn't work with gcc :(
>
> d:/kde/trunk/kdelibs/kjs/collector.cpp: In static member function
> `static void KJS::Collector::markCurrentThreadConservatively()':
> d:/kde/trunk/kdelibs/kjs/collector.cpp:309: error: expected `(' before
> '{' token
> d:/kde/trunk/kdelibs/kjs/collector.cpp:309: error: expected asm body
> before '{' token
> d:/kde/trunk/kdelibs/kjs/collector.cpp:310: error: `MOV' undeclared
> (first use this function)
> d:/kde/trunk/kdelibs/kjs/collector.cpp:310: error: (Each undeclared
> identifier is reported only once for each function it appears in.)
> d:/kde/trunk/kdelibs/kjs/collector.cpp:310: error: expected `;' before
> "EAX"
> d:/kde/trunk/kdelibs/kjs/collector.cpp:310:22: invalid suffix "h" on
> integer constant
> make[2]: *** [kjs/CMakeFiles/kjs.dir/collector.obj] Error 1
> make[2]: Leaving directory `/d/kde/trunk/kdelibs'
> make[1]: *** [kjs/CMakeFiles/kjs.dir/all] Error 2
> make[1]: Leaving directory `/d/kde/trunk/kdelibs'
> make: *** [all] Error 2
>
> Paulo
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem


More information about the Kde-buildsystem mailing list