Keil Logo

C51: Program-wide Source/Assembly Listing File


Information in this article applies to:

  • C51 version 6.23 and newer

QUESTION

Is it possible to get a full mixed assembly/source listing for the entire program?

ANSWER

A .COD listing file contains the complete program source/assembly listing. All addresses are listed and fixed-up. To configure µVision to generate a .COD file:

  1. Project - Options for Target - on the Device tab, make sure Use Extended Linker instead of BL51
  2. On the middle C51 tab, in the Code Optimization section, check Linker Code Packing AJMP / ACALL.
    (If this option is grayed out double check the settings on the Device tab.)
  3. On the bottom left of the Listing tab, check Linker Code Listing .\* cod.
    (If this option is grayed out double check the settings on the C51 tab).

Te LX51 Linker which is included with the PK51 Professional Developer's Kit. The BL51 Linker cannot generate .COD files.

C51 versions 6.22 and older cannot create .COD files.

SEE ALSO

MORE INFORMATION


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.