ARM Technical Support Knowledge Articles

REENTRANT FUNCTIONS IN LARGE OR SMALL MEMORY MODELS

Applies to: RTX51 Real-time Kernel

Answer


Information in this article applies to:


QUESTION

The RTX51 manual states that reentrant functions are only supported in the compact memory model. Is there any way that reentrant functions may be used in the large or small memory models as well?

ANSWER

Yes. Choose the memory model you desire for your project and declare the reentrant functions as using the compact memory model. For example:

void foo(void) compact reentrant
{
  ;
}

The compact memory model will be used only for those functions specified as compact. Note that you must still initialize the compact model reentrant stack.

Note that RTX51 supports compact model reentrant functions only. Reentrant functions (in RTX51) cannot be declared for small or large memory model.

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-03-29 16:39:37

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