[Research] Discover how producing line numbers (`-y`) slightly optimizes jumps

Yes, seriously. Not something we actually need right now, but who
knows!

Part of P0161, funded by [Anonymous].
This commit is contained in:
nmlgc 2021-10-03 17:16:43 +02:00
parent a317cb49fc
commit 44d1389835
1 changed files with 7 additions and 0 deletions

View File

@ -459,6 +459,13 @@ Inhibited by:
* inlined calls to empty functions
### `-y` (Produce line number info)
Provides its own kind of slight jump optimization if combined with `-O-`. Yes,
seriously. Might be required to decompile code that seems to contain both some
of the jump optimizations from `-O` and the stack-clearing instructions after
every function call from `-O-`.
## Inlining
Always worth a try to get rid of a potential macro. Some edge cases don't