gcc inline assembly for sparc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have the following inline assembly code (for a sparc machine), but get
compilation errors (such as /usr/ccs/bin/as: "/var/tmp//ccJC2PUL.s", line
415: error: statement syntax). Could you please tell me what is wrong with
my code as the error message is not very helpful? Thanks.

 __asm__ __volatile__ (                                        \
                        "movl %0, %%g1;"                        \
                        "movl %0, %%g2;"                        \
                        "movl %0, %%g3;"                        \
                        : /* no outputs */                      \
                        : "g" (var1), "g" (var2), "g" (var3)     \
                        : "g1", "g2", "g3"                      \
                        );     
-- 
View this message in context: http://www.nabble.com/gcc-inline-assembly-for-sparc-tf2961729.html#a8286324
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux