Keil Logo

Output Files

The L251 Linker generates an application-wide source/assembly listing (or code) file, an object module, and a listing (map) file.

  • The object file, by default, has no file extension.
  • The listing file has the .MAP extension.

If no output filename is specified, the linker uses the filename of the first object file in the input file list for the object module and for the listing file. An error occurs if the first input file contains no extension.

For example:

L251 PROG1

generates the following fatal error:

*** FATAL ERROR L209: FILE USED IN CONFLICTING CONTEXTS
    FILE: PROG1

This error occurs because the name of the input object file is identical to the object file the linker creates. The following example demonstrates how to avoid this problem.

L251 PROG1 TO PROG1.ABS

This example specifies an output filename (PROG1.ABS) and avoids the prior error.

  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.