| |||||
Technical Support Support Resources
Product Information | RTX51: REENTRANT FUNCTIONS IN LARGE OR SMALL MEMORY MODELSInformation in this article applies to:
QUESTIONThe 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? ANSWERYes. 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
Last Reviewed: Wednesday, March 29, 2006 | ||||
| |||||