![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 | ||
Rear Admiral
![]() Join Date: Apr 2005
Posts: 11,866
Downloads: 0
Uploads: 0
|
![]() Quote:
This way you can compile in support for say, OpenOffice, but if you know you aren't going to use KDE for example, you have the option not to compile in support for KDE. When building your kernel, you also remove all the bloat from there as well. You only compile in the kernel what 'your' system needs to run and function. You can also build your own GCC flags, etc. Remove anything you will not need or want. An example of what my future compilation of Gentoo on my particular system will probably look something like this (though mine eventually gets larger to support compile caching, etc): CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -pipe" CXXFLAGS="${CFLAGS}"-fomit-frame-pointer is not used because I don't plan to do any debugging and removing this breaks debugging if I remember correctly. I like an optimization level of 3 - it makes the code slightly larger, but in trade you get slightly faster processing with the risk of possibly breaking the code. Most source code will force an -O2 if they know -O3 won't work, so its really a non issue. Per IBM: Techniques used in optimization level 3 At optimization levels 3 and above, the compiler is more aggressive, making changes to program semantics that will improve performance even if there is some risk that these changes will produce different results. Here are some examples:
At optimization level 3, all of the techniques in optimization level 2 are used, plus the following:
|
||
![]() |
![]() |
![]() |
#17 |
Samurai Navy
![]() Join Date: May 2005
Posts: 588
Downloads: 0
Uploads: 0
|
![]()
I thought I was a geek trying to explain to a newie.
But you are one of those guys who loves "Linux from Scratch"!!!!!!!! You are a fanatic without remedy. ![]() ![]() ![]() ![]() ![]() I will be away from you. ![]() ![]() ![]() Last edited by VON_CAPO; 07-17-06 at 12:24 PM. |
![]() |
![]() |
![]() |
|
|