I seem to remember that the Visual Studio compiler could in some cases merge identical code from different functions together to save space (e.g., by combining identical epilogues). Anyone happen to have an example or link?
-
-
Yikes!
-
Everything about MSVC is just a steaming pile of
End of conversation
New conversation -
-
-
This is called identical code folding (ICF) optimization. lld supports it too.
-
According to Raymond Chen, it's Identical COMDAT Folding:https://blogs.msdn.microsoft.com/oldnewthing/20161024-00/?p=94575 …
-
yes, both terms are used.
End of conversation
New conversation -
-
-
The LLVM and GNU linkers can both do the same thing, it's not just MSVC...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Wait wut?? Who signed off on that
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.