Keil Logo

BL51: WARNING 5 (CODE SPACE OVERLAP)


Information in this article applies to:

  • C51 All Versions

QUESTION

I have a project with some assembly files and some C files. When I compile and link my project, I receive the following warning message:

***WARNING L5: CODE SPACE MEMORY OVERLAP FROM: 0000H TO: 0451H

Can you give me any feedback to solve or debug this warning?

ANSWER

This linker warning is issued when 2 or more absolute segments are located at the same address range.

To solve this problem, check your assembly code to make sure that the CSEG at 0 or ORG 0 statements are not used in the code. These force the segment to be an absolute segment (located at address 0000h). When the linker links your program, it cannot relocate the absolute segments and so it must put them where they are defined. If 2 segments are defined to be at address 0000h, the linker generates the warning you have received.

MORE INFORMATION

Last Reviewed: Tuesday, July 19, 2005


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.