-define


< Optimizing Linkage Editor (rlink) Options / Input Options >

[Format]

-define = <suboption>[,...]
          <suboption>: <symbol name>={<symbol name> | <numerical value>}

[Description]

-

Defines an undefined symbol forcedly as an externally defined symbol or a numerical value.

-

The numerical value is specified in the hexadecimal notation. If the specified value starts with a letter from A to F, symbols are searched first, and if no corresponding symbol is found, the value is interpreted as a numerical value. Values starting with 0 are always interpreted as numerical values.

-

If the specified symbol name is a C/C++ variable name, add an underscore (_) at the head of the definition name in the program. If the symbol name is a C++ function name (except for the main function), enclose the definition name with the double-quotes including parameter strings. If the parameter is void, specify as "<function name>( )".

[Examples]

define=_sym1=data  ; Defines _sym1 as the same value as the externally defined symbol data.
define=_sym2=4000  ; Defines _sym2 as 0x4000.

[Remarks]

-

When form={object | relocate | library} is specified, this option is unavailable.