hi, all
I have seen some code like this:
Code:
asm volatile ( \
LOADARGS_##nr \
"movl %1, %%eax\n\t" \
"int _0x81\n\t" \
RESTOREARGS_##nr \
: "=a" (resultvar) \
: "i" (__NR_##name) ASMFMT_##nr(args) : "memory", "cc"); \
if (resultvar >= 0xfffff001) \
{ \
errno= (-resultvar); \
resultvar = 0xffffffff; \
} \
(int) resultvar; })
I konw there is some assembler language embedded in this program,and the key words "asm volatile" tell the compiler "following is assembler language", So I want to konw ,if I want to compile such kind of C program, which argument should be add in gcc command.
if anyone have the experience of write/compile such kind of program,please give me a simple demo,and show the procedure of how to compile it and run it. It will be very helpful to me ,thnx a lot. and you can give a link to a web site