Comment by jart
10 months ago
I think so and I vaguely seem to recall -fno-schedule-insns2 being the only thing that fixes it. To get the full power of frame pointers and hackable binary, what I use is:
-fno-schedule-insns2
-fno-omit-frame-pointers
-fno-optimize-sibling-calls
-mno-omit-leaf-frame-pointer
-fpatchable-function-entry=18,16
-fno-inline-functions-called-once
The only flag that's potentially problematic is -fno-optimize-sibling-calls since it breaks the optimal approach to writing interpreters and slows down code that's written in a more mathematical style.
No comments yet
Contribute on Hacker News ↗