What does optimizing for size mean?
While compiling my kernel with menuconfig I came across a setting that is:
[]Optimize for size (look out for broken compilers!) What exactly does this setting do? |
I tried it once and it used the -Os flag instead of the usual -O2 flag. From the GCC manpage :
Quote:
|
Quote:
|
No, not really. I used it for a while but now I'm just back to the regular setting. I think it's really a setting more for embedded kernels than for the desktop. It did make my kernel about ~700K smaller, your mileage may vary. I'll bet the real difference is in module sizes. Loop unrolling and things like that would make them individually larger and sometimes that can add up. I didn't check those, though.
|
All times are GMT -5. The time now is 06:24 PM. |