SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have flags like the above in my .profile (and .bashrc) and they are over-ridden by the Makefile. You'll have to edit the Makefile I believe, at least that's how I changed it.
(On kernel 2.6.x there is the option for -Os, enabling that will do.)
Set the following config options. It's better to do it this way, so you can keep a record of the config file. There's no reason to edit the Makefiles, or set CC on your own.
General setup -> Check "Optimize for size" (CONFIG_CC_OPTIMIZE_FOR_SIZE)
Processor type and features -> Processor family -> Check "Pentium-III/Celeron(Coppermine)/Xeon" (CONFIG_MPENTIUMIII)
Kernel hacking -> Uncheck "Compile the kernel with frame pointers" (CONFIG_FRAME_POINTER=n)
-pipe doesn't affect the quality of the compiled code.
@narz Why are you wasting everyones time with your stupid comment?
I obviously had my reasons, and you'd have to be pretty dim not to figure it out: This is the top google result for this issue, and the advice doesn't work for modern distros.
If you actually want to optimize your kernel for your running CPU, my response now tells people how to do that, which is to mod the -mtune=native parm into those 2 makefiles.
Do not reply. Go on. I dare you. Prove you're not a troll, and try not to reply.
This is the top google result for this issue, and the advice doesn't work for modern distros.
And, uh, what proportion of modern distros does your advice work for? the3dfxdude's advice works properly, for all distros, and the fact that the options are right there in the standard kernel menus for all to see is why nobody worries about this any more.
Allocation of stupidity is left as an exercise for the reader.
@narz Why are you wasting everyones time with your stupid comment?
I obviously had my reasons, and you'd have to be pretty dim not to figure it out: This is the top google result for this issue, and the advice doesn't work for modern distros.
If you actually want to optimize your kernel for your running CPU, my response now tells people how to do that, which is to mod the -mtune=native parm into those 2 makefiles.
Do not reply. Go on. I dare you. Prove you're not a troll, and try not to reply.
Wow you're serious?? Like 55020 mentioned, the3dfxdude tells you exactly how to do all this on modern distros. You don't have to edit any makefiles. Try and relax.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.