Re: GCC Inline assembly - immediate integer operand emit without $

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

 



    asm (".pushsection .test\n"
         ".long 0, %P0, %P1\n"

         ".popsection"
         :: "i"(ENUM_VAL2), "i"(2));

but this is quite hackish, %P isn't meant for this.  On newer GCC
versions there is %p, which is better.

Thanks - it is what exactly I wanted.

I knew I forgot something :-)  Please use "%c0" instead, which works
on every GCC version, and is portable even.


Segher



[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