Introduction
A module-definition file gives the Microsoft C and C++ linker information about the
exports, attributes and other properties of the program being linked. It is most
useful when building a DLL. It is passed to the linker with the /DEF
option.
Chip design uses the same extension for the unrelated Design Exchange Format.
Structure
The file is text made of statements: NAME, LIBRARY,
EXPORTS, HEAPSIZE, SECTIONS,
STACKSIZE, STUB and VERSION. Statements and
names are case sensitive. A NAME or LIBRARY statement, if
present, comes first. A comment is a line that starts with a semicolon, and numbers are
written in decimal or hexadecimal.
Not described
Known, not yet covered
- Reference: this page is a summary; the arguments of each statement and the reserved words are not yet described on this site.
- Viewer: the site has no viewer for module-definition files.
Also used for
- Design Exchange Format – Text description of a chip layout: placed cells, pins, nets and wiring.
Links
Software
- Microsoft C/C++ linker (LINK) – reads the file named with
/DEF(Windows)
Reference
- Module-definition (.def) files – Microsoft’s overview and list of statements
- Rules for module-definition statements – the syntax rules