GNU Info

Info Node: (nasm.info)Section 7.1

(nasm.info)Section 7.1


Next: Section 7.1.1 Prev: Chapter 7 Up: Chapter 7
Enter node , (file) or (file)node

7.1. Producing `.EXE' Files
===========================

   Any large program written under DOS needs to be built as a `.EXE'
file: only `.EXE' files have the necessary internal structure required
to span more than one 64K segment. Windows programs, also, have to be
built as `.EXE' files, since Windows does not support the `.COM' format.

   In general, you generate `.EXE' files by using the `obj' output
format to produce one or more `.OBJ' files, and then linking them
together using a linker. However, NASM also supports the direct
generation of simple DOS `.EXE' files using the `bin' output format (by
using `DB' and `DW' to construct the `.EXE' file header), and a macro
package is supplied to do this. Thanks to Yann Guidon for contributing
the code for this.

   NASM may also support `.EXE' natively as another output format in
future releases.

Section 7.1.1
Using the `obj' Format To Generate `.EXE' Files
Section 7.1.2
Using the `bin' Format To Generate `.EXE' Files

automatically generated by info2www version 1.2.2.9