Originally posted by curaga
View Post
Announcement
Collapse
No announcement yet.
Torvalds Is Unconvinced By LTO'ing A Linux Kernel
Collapse
X
-
-
Liska's thesis was linked in the thread. So soon LTO will allow the compiler to de-duplicate functions. They're also adding it to the linker, as each can catch different parts.
That saves 5% off Firefox binary size, because C++ generated a few thousand variants of a "increase reference count" function. Each with a different type of pointer, yet compiled to the exact same instructions.
Leave a comment:
-
Guest repliedOriginally posted by Brane215 View PostI....
I've toyed with it and have seen many weird errors, so I recompiled everything with bog standard "-march=native -O2"
LTO is interesting as an idea, but with this gcc and binutils... no, thanks. I'll wait for next round of gcc before I try again.
LTO seems much safer, though any gain for desktop users is doubtful due to the fact that distribution kernels are super robust and have everything in modules, which is presumably least effective use-case for LTO (and yet, most widely used).
Leave a comment:
-
It looks like that Linus was so mad that he brought kernel.org down
Your privileges are revoked !
Leave a comment:
-
Originally posted by Pseus View PostFlash space, not the runtime footprint, is usually the problem in routers (which usually carry more RAM than Flash).
Leave a comment:
-
WTF
WTF is "Unconvined"? Is it Unconvinced because seriously spellcheck?
Leave a comment:
-
I'm not sure I would want that thing in kernel just yet.
kernel is a thin layer of code anyway. There is not much potential for sizeable speed gains there, even if LTO would work much better than it does.
I've toyed with it and have seen many weird errors, so I recompiled everything with bog standard "-march=native -O2"
LTO is interesting as an idea, but with this gcc and binutils... no, thanks. I'll wait for next round of gcc before I try again.
And this goes even more for kernel. Having schisophrenic userland is bad enough, but stuffing that into kernel intself could be a disaster.
Leave a comment:
-
So someone has to make tests and benchamarks to evaluate its capabilities, problems and advantages.
Leave a comment:
Leave a comment: