Keil Logo

C51: Source Code Doesn't Display in My Emulator

QUESTION

I'm using C51 to compile my source files and I have used the DEBUG and OBJECTEXTEND directives to get source level information in my object files. However, when I load my absolute object file into my emulator, I don't get source level information. I do get line numbers, but no source. What's wrong?

ANSWER

There are only a few things that may prevent the source level information from being displayed. If you have included the DEBUG and OBJECTEXTEND directives, then the line number information is included in the object files.

The emulator needs to have the absolute object file as well as the source files to display the source level information. Make sure that the emulator has access to all these files. If you copy your absolute object module to a floppy for the emulator, make sure to copy the source files there as well. Without the source files, the emulator will not display source level information when you debug.

SEE ALSO


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.