Keil Logo

RTX51: REENTRANT FUNCTIONS IN LARGE OR SMALL MEMORY MODELS


Information in this article applies to:

  • RTX51 Version 3.10

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

  • Refer to Reentrant Functions in the Cx51 User's Guide.
  • Refer to Memory Models in the Cx51 User's Guide.
  • Refer to pages 119 and 120 in the RTX51 User's Guide (04.98) for more information on reentrant stacks and functions.

SEE ALSO

Last Reviewed: Wednesday, March 29, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.