LTO
LTO
Posted Aug 22, 2014 9:28 UTC (Fri) by epa (subscriber, #39769)Parent article: Kernel tinification
Posted Aug 22, 2014 10:54 UTC (Fri)
by anselm (subscriber, #2796)
[Link] (1 responses)
I'm not overly familiar with the Linux kernel source, but it seems to me that individual translation units (source files) might use »static« declarations at top level to keep identifiers local to that translation unit, which is a popular programming technique in C.
Simply concatenating everything to make one huge translation unit would presumably fail if a name is declared that way in two different source files.
Posted Aug 29, 2014 21:07 UTC (Fri)
by nix (subscriber, #2304)
[Link]
There's no *way* you can handle that in the same TU.
Posted Aug 28, 2014 9:01 UTC (Thu)
by yoshi314 (guest, #36190)
[Link] (1 responses)
Posted Aug 29, 2014 10:37 UTC (Fri)
by jezuch (subscriber, #52988)
[Link]
Normally, no - because in the final link stage all you (normally) have are the already compiled and optimized object files. You need the source code in some form [also] available, and that's *exactly* what gcc's LTO does. There's not much more to it.
And, it's a lot less buggy than a few years ago.
LTO
LTO
LTO
LTO