3 ms·
> The "codegen units" concept doesn't work for those languages. Sure it does. Or at least could, depending on what you mean by that term. See, e.g., GCC's -flt
by wahern 2y ago
> The "codegen units" concept doesn't work for those languages.
Sure it does. Or at least could, depending on what you mean by that term. See, e.g., GCC's -flto-partition option, which supports various partitioning strategies for parallel LTO codegen.
- steveklabnik 2y agoLTO is distinct, and happens after what codegen units does. That said, it is a more fine grained parallelism, for sure. Rust does LTO as well as codegen-units. Really, as you gesture towards, on some level, this is all semantics: our linkers are also basically compilers too, at this point.