OMF-Specific Libraries and Startup Modules

Library files and start-up modules are specific to OMF (Object Module Format). An OMF can be one of the following:

There are two ways to select the OMF:

  1. 1.Set an environment variable called XC16_OMF for all tools.
  2. 2.Select the OMF on the command line when invoking the tool, i.e., -omf=omf or -momf=omf.

16-bit tools will first look for generic library files when building your application (no OMF specification). If these cannot be found, the tools will look at your OMF specifications and determine which library file to use.

As an example, if libdsp.a is not found and no environment variable or command-line option is set, the file libdsp-coff.a will be used by default.