LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Benjamin Close <linux@senet.com.au>
To : miikl@bigfoot.com
Date: Fri, 10 Sep 1999 15:27:35 +0930 (CST)
Re: Optimising the kernel
On Fri, 10 Sep 1999, Michael Wardle wrote:
> What does everyone think is the best compiler for kernel building:
> gcc, egcs, or pgcc? I have Red Hat 6.0. I think that I have gcc and egcs,
> but not pgcc. Would this be right? Is pgcc provided in a standard Red Hat
> distribution?
gcc = stable, least likely to fail
egcs = almost 100% stable depending on version(not tested by time yet)
pgcc = egcs & pgcc were the same thing at one point. pgcc now specializes
in intel chips and using newer instructions to optimise the code.
gcc with redhat 6 is actually still egcs - it's a symlink
To find out the version of any compiler: gcc --version
> -m486 appears in the Makefile. Is this what I should be altering?
> If so, which would be appropriate for my Pentium MMX chip?
> * -m586
> * -mpentium
> * -march=pentium
Yes, that is the line you should alter.
If I recall correctly the 3 options you listed above all do the same
thing. Can anyone verify this?
> It seems that there are two types of 586's for the -march option (586 and
> 586TSC/Pentium). Is this also applicable to the -DCPU=586 option?
Some early chips (ibm/cyrix) which claimed to be as fast as the pentium
didn't have tsc (a time register). If you chose this option and your cpu
doesn't have this register, the new kernel won't boot. Setting this option
does set -DCPU=586
Just remember. If you try to speed up your kernel using better
optimisation, you can corrupt your filesystem. Also you can't report
kernel bugs as it may be caused by the optimization (inlining a function
which shouldn't be or something);
Cheers,
--
* Benjamin Close
* Benjsc@senet.com.au
* Web Page: http://users.senet.com.au/~benjsc
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page