3 ms·
There is a lot of cargo culting in the -O2 decision. But it also true that O3 enables a lot of loop optimizations that are not particularly relevant for the ke
by gpderetta 4y ago
There is a lot of cargo culting in the -O2 decision.
But it also true that O3 enables a lot of loop optimizations that are not particularly relevant for the kernel. Also the kernel is less reliant of more aggressive inlining and interprocedural optimizations than, say, highly abstracted C++ code.
- colejohnson66 4y agoFor sure, -O3 isn't really necessary in the kernel, but saying, "it's so bad that we shouldn't even have a Kconfig flag for it" is a bit extreme