> Inline assembly blocks interact poorly with the surrounding C code, so
> the atomic primitives really need to be intrinsic functions.

inline asm() in GCC is actually quite powerful, and understands the
context of the surrounding C---in particular you can specify the
inputs to the asm() block in terms of the C variables, and the
compiler will arrange them correctly, even if the content of the asm()
has hardware constraints of the kind  'the operands to this
instruction must be in those registers':

http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html

I apologize if you are aware of all this and still think asm() is not
powerful and/or convenient enough.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to