delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/11/01:43:44

Date: Tue, 11 Aug 1998 08:43:30 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "R. Brenner" <rene DOT brenner AT NO_SPAM_PLZbluewin DOT ch>
cc: djgpp AT delorie DOT com
Subject: Re: problem with using external NASM procedures
In-Reply-To: <6qntq4$bl1$1@bw107zhb.bluewin.ch>
Message-ID: <Pine.SUN.3.91.980811084309.6266F-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019