From: "Andrew Crabtree" 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: NNTP-Posting-Host: ros51675cra.rose.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > 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