Mail Archives: djgpp/1998/08/11/01:43:44
On Tue, 11 Aug 1998, R. Brenner wrote:
> And of course I got errors (like with everything I do it seems).
> asm.c: In function `main':
> asm.c:13: parse error before `{'
> asm.c: warning: unused variable `xpos'
>
> What's up now? Can't I use inline assembler in DJGPP?
Yes, you can--if you read the docs first.
You are trying to use inline assembly in a syntax that is totally
different from what GCC accepts. (Inline assembly syntax is something
very specific to each compiler.) The DJGPP FAQ list (v2/faq210b.zip
from the same place you get DJGPP) explains this issue in more detail
in sections 17.1 and 18.13, and also gives pointers to more
documentation on this subject.
- Raw text -