Re: GCC inline assembly question

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

 



On Wed, Feb 12, 2020 at 01:24:13AM +0000, Boie, Andrew P wrote:
> > > Any tips on getting this to work right on x86-64? It is not liking the
> > combination of the %c0 input operand modifier 'c' and the 'n' constraint if the
> > provided constant exceeds a signed integer. I imagine some other
> > incantation would work but I'm not sure what.
> > 
> > You can just paste it into the string here, like you have #name already?
> 
> I can't without changing a lot of plumbing. Some values passed in need to be processed by the C compiler. For example in some cases sizeof(some struct) is used.

You can use "%p0", since GCC 4.7 .


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