From 44d13898350ac1f7f34b35251e15395d7529358a Mon Sep 17 00:00:00 2001 From: nmlgc Date: Sun, 3 Oct 2021 17:16:43 +0200 Subject: [PATCH] [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]. --- Research/Borland C++ decompilation.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Research/Borland C++ decompilation.md b/Research/Borland C++ decompilation.md index 7102873f..dd64ea9a 100644 --- a/Research/Borland C++ decompilation.md +++ b/Research/Borland C++ decompilation.md @@ -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