Keil Logo

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:

Option Debug Information Removed
NOCOMMENTS Comment records.
NOLINES Line number information.
NOPUBLICS Public symbol information.
NOSYMBOLS Local symbol information.
PURGE Complete 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.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.