|
Hello,
I am trying to compile a program with inline assembler like yours, but failing.
When I try to compile your code I get the messages:
perkinel-e586cd:~/cfiles/HIS> gcc -o spiral spiral.c -masm=intel
spiral.c:15:6: missing terminating " character
spiral.c: In function `myasm':
spiral.c:16: error: parse error before "mov"
spiral.c:31:2: missing terminating " character
perkinel-e586cd:~/cfiles
Where line
15 is asm("
16 is mov ecx, 1
32 is ");
I take it you are using linux? what version of gcc have you got.
Linda
|