variable with inline assembly??

kanata kanata@celab1.ee.ntou.edu.tw
Tue Jun 20 23:12:00 GMT 2000


Hi All,
I have a question with variable want to use in inline assembly, here
is a example:
void test()
{    long var1;
     var1 = 10;
     asm("
           lw    $8,var1
     ");
}
But when compile, GCC said Error : Symbol 'var1' not defined...
How can I use variable with inline assembly? Thx.

Best Regards,
Kanata


More information about the Gcc-help mailing list