🎉 We're happy to announce new public releases 🎉

  • SmartCode v10.4r1 - Take advantage of all the benefits our tools have to offer and build your applications with the latest version
  • TriCore v6.3r1 Inspector v1.0r8 - Save time and detect known issues before they get into your application
Contact us to get access

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

01-Oct-2025

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.


More resources




Was this answer helpful?