![]() |
Home |
|
Function RTKStackCheckRTKernel-32 offers its own stack-check mechanism. Unlike compiler-generated stack checks, function RTKStackCheck can also be used in interrupt handlers. void RTKStackCheck(void); The Debug Version of RTKernel-32 will call RTKStackCheck in every RTKernel-32 operation if flag RF_STACKCHECKS is set in RTKConfig.Flags. The program is aborted with an error message if less than 64 bytes are left on the stack. These 64 bytes are required by RTKernel-32 to issue the error message and abort the program. Error-free termination of the program cannot be expected due to the lack of stack space. It should be noted that RTKernel-32 can only recognize stack overflows that occur in a kernel call. Stack overflows in the application code or the Standard Version may go unnoticed.
|