View Single Post
Old Feb 17th, 2005, 10:24 AM   #8
LindaW567
Newbie
 
Join Date: Feb 2005
Location: Near London, England
Posts: 5
Rep Power: 0 LindaW567 is on a distinguished road
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
LindaW567 is offline   Reply With Quote