gcc test.c test.c: In function ‘main’: test.c:7: error: expected ‘(’ before ‘{’ token test.c:8: error: ‘mov’ undeclared (first use in this function) test.c:8: error: (Each undeclared identifier is reported only once test.c:8: error: for each function it appears in.) cat test.c #include #include int main(int argc,char** argv) { int stack; __asm { mov stack,esp } printf("%d\n",stack); }