ARM Technical Support Knowledge Articles

CODE VS ECODE

Applies to: CX51 C Compiler

Answer


Information in this article applies to:


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

SEE ALSO

Article last edited on: 2007-01-12 15:29:28

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential