Technical Support

BL51: STARTING ADDRESS FOR VARIABLES IN RAM


Information in this article applies to:

  • C51 All Versions

QUESTION

What is the starting address that 8051 linker uses to locate variables in RAM?

ANSWER

If RAM means internal data space (DATA, IDATA, BIT), the answer is after the register banks that are used and after any bit variables that have been declared. Refer to:

  • Refer to DATA in the BL51 User's Guide.
  • Refer to IDATA in the BL51 User's Guide.
  • Refer to BIT in the BL51 User's Guide.

in the BL51 User's Guide for more information concerning these storage options.

If RAM means external data space (XDATA), the answer is at address 0x0000. Note that you can tell the linker where DATA and XDATA begin. So, you can tell the linker that XDATA variables start at 0x8000, for example. Refer to XDATA in the BL51 User's Guide for more information.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure