tu peux regarder dans gcc comment inclure du code asm
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Extended-Asm.html#Extended%20Asm