ARM Technical Support Knowledge Articles

MIXING MEMORY MODELS AND MEMORY AREAS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

We have a large memory configuration (external RAM of 64K code and 64K XData). We would like to use the external data for buffers, queues, and so on.

Is there a compiler option to use the internal RAM (256 -32 bytes) for our stack? We do not want to use the simulated stack because of inefficiency.

ANSWER

The compiler is completely flexible in where you locate variables, buffers, reentrant stacks, and so on. You may specify different memory models for each function in your program, different memory models for reentrant functions, and for each variable. For example:

Article last edited on: 2004-06-15 13:55:30

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