Mail Archives: djgpp/1997/01/03/16:26:57
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 <format> <filename> [-o <output>]
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
- Raw text -