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.
Yes, you can defined it in both memory.
Yes, you can define it in both memory.
Yes, you can define it in both memory. you can if speed is of no concern. You will see a considerable slowdown by having the stack in XDATA. Erik