delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/06/11:53:23

Date: Sun, 6 Jul 1997 08:52:28 -0700 (PDT)
Message-Id: <199707061552.IAA10848@adit.ap.net>
Mime-Version: 1.0
To: csantill AT lausd DOT k12 DOT ca DOT us
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: GNU assembler
Cc: djgpp AT delorie DOT com

At 02:12  7/5/1997 -0700, you wrote:
>Nate Eldredge wrote:
>> GAS is sort of ugly and buggy for writing assembly routines. I recommend
>> NASM, an assembler which can output in a format linkable for DJGPP. It's on
>
>How do I link it to DJGPP C code
First you compile all your C modules with -c:
 gcc -c c_func.c
 ... etc ...
Then you assemble the assembly modules:
 nasm -o asm_func.o -f coff asm_func.asm
 ... etc ...
Finally you link it all together:
 gcc -o prog c_func.o asm_func.o

> & can I have an exact address for DOS
>NASM(I go to their site but I have problem w/their server)?
I'm afraid I can't help you much there, since I don't have FTP access. All I
know is it should be in the asmutl directory on SimtelNet and called nasm*.zip.

HTH

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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