LX51 User's Guide

OBJECTCONTROLS Linker Directive

Abbreviation

OC

Arguments

OBJECTCONTROLS (option 〚, ...〛)

Default

No debug information is excluded from the output file.

µVision

Options — LX51 Misc — Misc Controls.

Description

The OBJECTCONTROLS directive excludes debug information from the output object file. The specified option may be one or more of the following:

OptionDebug Information Removed
NOCOMMENTSComment records.
NOLINESLine number information.
NOPUBLICSPublic symbol information.
NOSYMBOLSLocal symbol information.
PURGEComplete debug information.

1. Abbreviations are underlined.

Note

  • This directive removes debug information from the object file only. To remove debug information from the listing file, refer to the PRINTCONTROLS directive.
See Also

NOCOMMENTS, NOLINES, NOPUBLICS, NOSYMBOLS, PRINTCONTROLS, PURGE

Example
LX51 file1.obj OBJECTCONTROLS (PURGE)

This example excludes all debug information from the output file. Debug information is included in the linker map file.


LX51 file2.obj OC (NOLINES, NOSYMBOLS)

This example excludes line number information and local debug symbols from the output file.