cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/21/19:30:54

From: "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: NASM and DJGPP together, is there a tutorial?
Date: Thu, 19 Feb 1998 09:49:07 -0800
Organization: Hewlett Packard
Lines: 23
Message-ID: <6chrak$mr8$1@rosenews.rose.hp.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980219171925 DOT 12626H-100000 AT is>
NNTP-Posting-Host: ros51675cra.rose.hp.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> But inline assembly facilities of GCC
>are IMHO great.
Agreed.

>> and how to change inline asm graphics functions to NASM syntax?
>There's no practical way to make GCC use NASM as its inline assembler.

Sure there is.   Hack the asm output backend of gcc to use nasm.  This *is*
actually practical because I did it in about 1 1/2 weeks last month.
Perhaps its more practical to just ask me to send a precompiled binary over
(NOTE - I will not actually do this because I haven't tested things
thouroughly, I will announce and release it someday).

>You will need to make GCC emit Intel-style assembly code for C source as
>well, since GCC just passes the inline code to the assembler it uses for
>generating object code.
Its actually the other way around, but same difference.  Its pretty much
just a novelty until
debug format (as well as a couple of other things, like proper code
alignment) is added to NASM.

Andy

- Raw text -


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