Keil Logo

CX51: CODE VS ECODE


Information in this article applies to:

  • CX51 All Versions

QUESTION

Why does my build (on a Philips MX device) show ECODE beginning at 0x000000?

ANSWER

Keep in mind that CODE and ROM are not the same thing.

CODE is the location of executable instructions in the traditional 8051ROM space. It uses 16-bit addressing, and can have a maximum size of 64k.

ECODE is the extended code space, available on "super 8051s" such as the Philips MX. It uses 24-bit addressing, and can have a maximum size of 8meg.

ECODE can overlap CODE, but since there's an additional byte of address information to set, 24-bit access is slower.

CONST and NCONST are equivalent to CODE and ECODE respectively, and are used to store constant data in ROM. They have the same restrictions as to size and speed as their counterparts.

MORE INFORMATION

  • Refer to CLASSES in the LX51 User's Guide.

SEE ALSO

Last Reviewed: Friday, January 12, 2007


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.