mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
The frame pointer was already omitted in the object files that TinyGo emits, but wasn't yet omitted in the C files it compiles. Omitting the frame pointer is good for code size (and perhaps performance). The frame pointer was originally used for printing stack traces in a debugger. However, advances in DWARF debug info have made it largely unnecessary (debug info contains enough information now to recover the frame pointer even without an explicit frame pointer register). In fact, GDB has been able to produce backtraces in TinyGo compiled code for a while now while it didn't include a frame pointer.pull/1039/head
Ayke van Laethem
5 years ago
committed by
Ayke
3 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue