Re:GCC 8 Link Time and Interprocedural Optimization
by srean on Tuesday June 19, 2018 @08:36AM
(#17345983)
In addition to simplicity it cuts down on compilation time. You can checkout MLTon or Felix to get a feel for whole program optimizing compilers, they can do optimizations that are impossible without LTO and hard to do with.
https://github.com/felix-lang/felix
http://felix-documentation-master.readthedocs.io/en/latest/m...
you can get "LTO" in javascript by using a minifier together with something like webpack which can inline modules when it's safe to do so (instead of putting them in functions that are called by the module loader and can't be minified away), so i assumed "real" compilers must do that stuff a lot better with the language being less dynamic