12.5.34 The /TINY Option

Option

/T[[INY]]

The /TINY option produces a .COM file instead of an .EXE file. The default extension of the output file is .COM. When the /CO option is used with /TINY, debug information is put in a separate file with the same base name as the .COM file and with the .DBG extension.

Not every program can be linked in the .COM format. The following restrictions apply:

The program must consist of only one physical segment. You can declare more than one segment in assembly-language programs; however, the segments must be in the same group.

The code must not use far references.

Segment addresses cannot be used as immediate data for instructions. For example, you cannot use the following instruction:

mov ax, CODESEG

Windows and OS/2 programs cannot be converted to a .COM format.