On Thu, Jun 10, 2010 at 04:12:11PM +0200, Peter Zijlstra wrote:
The problem is that the smallest code is often terrible.
You could often be much better with spending a few more bytes.
But -Os means "smallest"
On the other hand -Os could be likely made smaller
(it often still is not very good), but I fear that would
make things even worse.
We probably would need a -Osmall-but-not-terrible or so,
but that's not there.
I think __hot / __cold but keeping the default at -O2 is a better
approach anyways. Hot paths should be -O2. It just needs some more work.
It already works for __init/__exit at least.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
--