This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reentrant Stack

Hi,
I am using LARGE memory model for my project and so i enable reentrant stack in xdata by defining it in startup.a51 file as
XBPSTACK EQU 1

Some of my function are defined reentrant for small memory and some by default in large memory model. for example:

void func1(void) reentrant and
void func2(void) small reentrant.

Here, will the reentrant stack for func2 be allocated in xdata or idata ? as memory model is small for this func2, should i enable reentrant stack in both memory like:
XBPSTACK EQU 1
IBPSTACK EQU 1

Is this possible ?

Thanks in advance.

0