From: Elliott Oti Newsgroups: comp.os.msdos.djgpp Subject: Re: assembler - Using NASM with DJGPP Date: Fri, 03 Jan 1997 10:47:37 -0800 Organization: Academic Computer Centre Utrecht, (ACCU) Lines: 51 Message-ID: <32CD5449.CA7@stud.warande.ruu.nl> References: <32C7CD0C DOT 5B96 AT netime DOT com> <32CC1067 DOT 62C7 AT concentric DOT net> <5ah82n$kdg AT news DOT service DOT uci DOT edu> <32CD2C80 DOT D9D AT ot DOT com> NNTP-Posting-Host: warande1078.warande.ruu.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp ZionHill wrote: > > I'd love to use something for assembler other than the DJGPP methods. > When you compile INTEL style .asm files with NASM are they automatically > compatible with the DJGPP linker? > Do you have to set any special switches to make it work out? > Replies appreciated, One: -f coff. The NASM package also comes with working example assembler and C source code for DJGPP. From the Nasm documentation NASM.DOC: ======================================================================================= Running NASM ============ To assemble a file, you issue a command of the form nasm -f [-o ] For example, nasm -f elf myfile.asm will assemble `myfile.asm' into an ELF object file `myfile.o'. And nasm -f bin myfile.asm -o myfile.com will assemble `myfile.asm' into a raw binary program `myfile.com'. To get usage instructions from NASM, try typing `nasm -h'. This will also list the available output file formats, and what they are. `coff' and `win32': Common Object File Format --------------------------------------------- The `coff' format generates standard Unix COFF object files, which can be fed to (for example) the DJGPP linker. Its default output filename, like the other Unix formats, is `filename.o'. The `win32' format generates Win32 (Windows 95 or Intel-platform Windows NT) object files, which nominally use the COFF standard, but in fact are not compatible. Its default output filename is `filename.obj'. =============================================================================== Elliott