SPRUI04E July 2015 – January 2023
When C/C++ code is interrupted, the interrupt routine must preserve the contents of all machine registers that are used by the routine or by any functions called by the routine. The compiler handles register preservation if the interrupt service routine is written in C/C++ and declared with the __interrupt keyword.The compiler will save and restore the ILC and RILC control registers if needed.