I'm not sure which forum to contact.
So I ask here.
I wonder in which memory region the local variable is located if I select "size most critical" or "speed most critical" in the compiler optimization options.
In some cases, it is located in "register". Therefore, there are cases where the value of the local variable is changed to an unwanted value while ISR is performed first.
So, I am wondering if there is a document that can refer to how the location of local variables is allocated according to optimization options during the compilation process.
We look forward to your help.