Module Definition File: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
{|class="wikitable" | {|class="wikitable" | ||
|+Directives | |+Directives | ||
! || ||Parameters | |||
|- | |- | ||
!CODE | !CODE | ||
|Assigns characteristics to code segments | |Assigns characteristics to code segments | ||
|load option | |||
:LOADONCALL | |||
:PRELOAD | |||
execute-option | |||
:EXECUTEREAD | |||
:EXECUTEONLY | |||
privilege | |||
:IOPL | |||
:NOIOPL | |||
|- | |- | ||
!DATA | !DATA | ||
| Line 45: | Line 55: | ||
!STACKSIZE | !STACKSIZE | ||
|Specifies size of stack used by primary thread | |Specifies size of stack used by primary thread | ||
| | |||
|- | |- | ||
!STUB | !STUB | ||
|Embeds MS-DOS-compatible program in new executable file | |Embeds MS-DOS-compatible program in new executable file | ||
|name of a DOS mode .exe file | |||
|} | |} | ||
[[Category:File formats]] | [[Category:File formats]] | ||
Latest revision as of 18:35, 1 December 2025
The module definition file (.DEF) contains the attributes that can be included in the executable file.
| Parameters | ||
|---|---|---|
| CODE | Assigns characteristics to code segments | load option
execute-option
privilege
|
| DATA | Assigns characteristics to data segments | |
| DESCRIPTION | Embeds text in executable file | |
| EXETYPE | Specifies host operating system | |
| EXPORTS | Names functions exported for dynamic linking by other programs | |
| HEAPSIZE | Specifies initial size of local heap (C programs only) | |
| IMPORTS | Names functions that will be dynamically linked at load time | |
| LIBRARY | Builds dynlink library or device driver | |
| NAME | Builds application program | |
| OLD | Specifies ordinal compatibility with previous version of dynlink library | |
| PROTMODE | Flags file as executable in protected mode only | |
| REALMODE | Allows file to be executed in real mode | |
| SEGMENTS | Assigns characteristics to selected segments | |
| STACKSIZE | Specifies size of stack used by primary thread | |
| STUB | Embeds MS-DOS-compatible program in new executable file | name of a DOS mode .exe file |