Set Linker Options
You can set linker options in three ways:
Use /? to display a list of valid linker options on the
command line.
Precedence
- Options specified on the command line override the
options in the ILINK environment variable.
Options
specified in the ILINK environment variable override
settings specified by directives, including many
statements in a module definition file.
Options
specified in the ILINK environment variable override
settings specified in a module definition file.
- If conflicting options are specified (e.g., /DEBUG and
/NODEBUG), the last one specified is used.
Syntax
- You can enter numeric arguments in decimal, octal, or
hexadecimal format using standard C-language syntax.
- Linker options are not case sensitive.
- Separate options with a space or tab.
- You can substitute a dash (-) for the slash (/) preceding
the option.
- You can specify options in short or long form. For
example, /DE, /DEB, and /DEBU are all equivalent to
/DEBUG.
- Lowercase and uppercase, short and long forms, dashes,
and slashes can all be used on one command line, as in:
ilink /de -DBGPACK -Map /DLL prog.obj
- You can specify options anywhere on the command line. For
example, to link an object file with the /MAP option,
enter:
ilink /M myprog.obj

Start the Compiler

Numeric Arguments with Linker
Options
Summary of Linker Options