4 ms·
It's quite funny to hear somebody call for the reinvention of a field based on the quality of -O0 code. Just get over yourself and pass -Os.
by gsg 11y ago
It's quite funny to hear somebody call for the reinvention of a field based on the quality of -O0 code.
Just get over yourself and pass -Os.
- igravious 11y agoThat'd be great but here is what Torvalds has to say about -Os http://thread.gmane.org/gmane.linux.kernel/1927090/focus=1928945 http://thread.gmane.org/gmane.linux.kernel/1927090/focus=192... tl;dr - sometimes the smallest code being generated is slow and dumb
- gsg 11y agoThat's nothing compared to the -O0 crud that the GP was complaining about. It's also not a problem with the field of compiler design, but a (probably temporary) weakness in gcc. (It is an interesting anecdote though.)
- userbinator 11y agoI think we should definitely reconsider how compilers are doing code generation, if by default they are generating far more code than necessary and need to use optimisation to make up for it.
- gsg 11y agoThe large volume of -O0 code is just a result of skipping register allocation to save compilation time. There's no problem here.