GNU Info

Info Node: (nasm.info)Chapter 6

(nasm.info)Chapter 6


Next: Section 6.1 Prev: Section 5.7 Up: Top
Enter node , (file) or (file)node

Chapter 6: Output Formats
*************************

   NASM is a portable assembler, designed to be able to compile on any
ANSI C- supporting platform and produce output to run on a variety of
Intel x86 operating systems. For this reason, it has a large number of
available output formats, selected using the `-f' option on the NASM
command line. Each of these formats, along with its extensions to the
base NASM syntax, is detailed in this chapter.

   As stated in *Note Section 2.1.1::, NASM chooses a default name for
your output file based on the input file name and the chosen output
format. This will be generated by removing the extension (`.asm', `.s',
or whatever you like to use) from the input file name, and substituting
an extension defined by the output format. The extensions are given
with each format below.

Section 6.1
`bin': Flat-Form Binary Output
Section 6.2
`obj': Microsoft OMF Object Files
Section 6.3
`win32': Microsoft Win32 Object Files
Section 6.4
`coff': Common Object File Format
Section 6.5
`elf': Executable and Linkable Format Object Files
Section 6.6
`aout': Linux `a.out' Object Files
Section 6.7
`aoutb': NetBSD/FreeBSD/OpenBSD `a.out' Object Files
Section 6.8
`as86': Minix/Linux `as86' Object Files
Section 6.9
`rdf': Relocatable Dynamic Object File Format
Section 6.10
`dbg': Debugging Format

automatically generated by info2www version 1.2.2.9