Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22001

How does GCC print a stack trace?

$
0
0

when gcc/g++ encounters an ICE (internal compiler error), then recent versions of the compiler will print a neat stack trace before exiting.

Questions: What technology is used to implement that? GCC is written in C++, afaik some conservative revision like C++03.

In particular

  • GCC does not use Boost.

  • GCC does not use external libraries like linunwind or libexcept to all of my knowledge.

  • GCC does not necessarily use glibc. For example I can cross-compile GCC on linux for host mingw32, and stack traces work just fine.


So before blindly closing this question, please make sure the linked answer does not need any of these libraries.


Viewing all articles
Browse latest Browse all 22001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>