ARM Technical Support Knowledge Articles

STARTING ADDRESS FOR VARIABLES IN RAM

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


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:

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.

Article last edited on: 2005-07-15 10:15:54

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