To control the linking process and the files that linking produces, use the linker options. The information for each option shows the syntax and the accepted abbreviations for that option. It also describes the option, its parameters, and its interaction with other parameters.
| Option | Description | Default | Abbreviation |
|---|---|---|---|
| /? | Display a list of valid linker options (same as /HELP) | None | None |
| /ALIGNADDR | Set address alignment | /A:0x00010000 | /ALIGN |
| /ALIGNFILE | Set file alignment | /A:512 | /A |
| /BASE | Set preferred loading address | /BAS:0x00400000 | /BAS |
| /CODE | Set section attributes for executable | /CODE:RX | None |
| /DATA | Set section attributes for data | /DATA:RW | None |
| /DBGPACK, /NODBGPACK | Pack debugging information | /NODB | /DB|/NODB |
| /DEBUG, /NODEBUG | Include debugging information | /NODEB | /D|/NODEB |
| /DEFAULTLIBRARYSEARCH, /NODEFAULTLIBRARYSEARCH | Search default libraries | /DEF | /DEF|/NOD |
| /DLL | Generate DLL | /EXEC | /EXEC |
| /ENTRY | Specify an entry point in an executable file | None | /EXEC |
| /EXECUTABLE | Generate executable file | /EXEC | /EXEC |
| /EXTDICTIONARY, /NOEXTDICTIONARY | Use extended dictionary to search libraries | /EXT | /EXT|/NOE |
| /FIXED, /NOFIXED | Do not relocate the file in memory | /NOFI | /FI|/NOFI |
| /FORCE, /NOFORCE | Create executable output file even if errors are detected | /NOFO | /FO|/NOFO |
| /HEAP | Set the size of the program heap | /HEAP: 0x100000,0x1000 | /HEA |
| /HELP | Display help | None | /H |
| /INCLUDE | Forces a reference to a symbol | None | /INC |
| /INFORMATION, /NOINFORMATION | Display status of linking process | /NOIN | /I|/NOIN |
| /LINENUMBERS, /NOLINENUMBERS | Include line numbers in map file | /NOLI | /L|/NOLI |
| /LOGO, /NOLOGO | Display logo, echo response file | /LO | /LO|/NOL |
| /MAP, /NOMAP | Generate map file | /NOM | /M|/NOM |
| /OUT | Name output file | Name of first .obj file | /O |
| /PMTYPE | Specify application type | /PMTYPE:VIO | /PM |
| /SECTION | Set attributes for section | Set by /CODE and /DATA | /SEC |
| /SEGMENTS | Set maximum number of segments | /SE:256 | /SE |
| /STACK | Set stack size of application | /STACK: 0x100000,0x1000 | /ST |
| /STUB | Specify the name of the DOS stub file | None | /STU |
| /SUBSYSTEM | Specify the required subsystem and version | /SUBSYSTEM: WINDOWS,4.0 | /SU |
| /VERBOSE, /NOVERBOSE | Display status of linking process | /NOV | /VERB|/NOV |
| /VERSION | Write a version number in the run file | /VERSION:0.0 | /VER |
related tasks
Linking programs