🎉 We're happy to announce new public releases! ðŸŽ‰

  • SWAT v1.1r1 - Software tracing solution now supporting more architectures and operating systems - see SWAT Release Notes.
  • TriCore v6.2r2 Inspector v1.0r8 - An automated method for identifying toolset issues in compiled output code.
  • VX-toolset for Arm - v8.0r1 - A certified compiler toolset for safety-critical embedded software development on Arm cores.
Contact us to get access!

Detect stack overflow during run-time using the C compiler options

11-Feb-2026

Possible solution

To detect a stack overflow during run-time, using the C compiler options, you can use Stack overflow check.

To add a stack overflow check, you can use the following C compiler option:

--runtime (-r) :+/-stack s/S check for stack overflow

In the Eclipse IDE, you can enable this option via Project |Properties | C/C++ Build | Settings | C/C++ Compiler | Debugging | [x]Generate code for stack overflow checks.

For more information, see Stack overflow check in the product user guide.

For example, in the TriCore user guide, you can refer to Stack overflow check.

Was this answer helpful?