Syntax for inline asm for 64 bit variable on 32 bit architecture

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

 



Hello,

What is the syntax for using 64 bit variables in inline asm on a 32 bit
architecture. How do you know which register pair is used?
For example, how to code a+=b; in this case..
Long long a= 0, b = 1;
Asm ("add %0, %1 \n\t adc %2, %3" : "+r" (a) : "r" (b));

Thanks, cyrille


[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