r/Compilers • u/chnoblouch • Sep 09 '26
Cross-platform stack traces
https://marinohimself.ch/blog/cross-platform-stack-traces.html
1
Upvotes
r/Compilers • u/chnoblouch • Sep 09 '26
View all comments
Show parent comment
1
u/chnoblouch Sep 09 '26
That's true, but for now I mainly care about printing call stacks coming from my own language. My compiler always generates code for updating the frame pointer, so this should only be an issue when foreign functions are involved, in which case they would be skipped in the trace. I also believe
-fomit-frame-pointerhas fallen somewhat out of favor in the past years?It would be great to have support for generating and parsing DWARF, but that would be a lot of work and I want to focus on other parts of the compiler first.