Hi Everyone.
I am a little confused about something. Let's Suppose I'm running some concurrent tasks in RL-RTX. and let's say one of those tasks is calling a chain of functions ( a function that calls a function that calls another function).
I have 2 questions: 1. Where are the return addresses stored before jumping to the function instruction? Is it stored on the task's stack?
2. if it is stored on the task's stack, then is this (size of the return addresses) taken into account when the linker calculates "Maximum stack depth" and "Stack usage" stored in the html file in the output directory? or is that only the automatic variables?
Thank you very much in advance.
I guess, theoretically, we should take the nested interrupts into account too. When the worst case of nested interrupts happens, it would be very stack consuming.
Stack and stack size configuration are always a mystery to me.