-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Thorsten Kampe wrote:
| Is it sensible to compile my kernel with the CFLAGS[1] of my
| /etc/make.conf that have proven to be stable?!

No, the reason being is that the the proven CFLAGS from make.conf are
used in userland applications, the kernel itself is a much different
animal, and runs in a much different enviornment, therefore, CFLAGS that
are stable in userland may not be stable in kernelland.

Moreover, many ebuilds will filter flags out of your cflags, for
example, glibc will fiter out your O2 because it breaks linux-threads.

|
| I never thought of that but it could be an performance gain like for
| any other portage package, but maybe I am missing something
| important...?

really, as long as your -march= is right, gcc will do the appropriate -m
(for whatever cpu flags your cpu has) options for you. However, the
problem is that because of the nature of what the kernel does, and
because of how close it is to hardware, and because of how intimately
intertwined it is with GCC, optimizations, other than the ones hard
coded into the kernel's makefile, become very dangorous.

For example, in your CFLAGS -O3 is perfectly safe, however, in the
kernel CFLAGS, it will cause mount to intermitantly trigger a kernel
oops on x86 archs.

|
|
| Thorsten
|
| [1] export CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
|
|
| --
| [EMAIL PROTECTED] mailing list
|

- --
Stephen Clowater

Dr. Zoidberg: "Okay, so you're nonchalant, stop rubbing our noses in it.

The (revised) 3 case c++ function to determine the meaning of life :

#include <stdio.h>
FILE *meaingOfLife() { FILE *Meaning_of_your_life = popen((is_reality(\
))?(is_arts_student())?  "grep -i 'meaning of life' /dev/null": "grep \
- -i 'meaning of life' /dev/urandom": /* politically correct */ "grep -i\
'* \n * \n' /dev/urandom", "w"); if(is_canada_revenues_agency_employee\
()) { printf("Sending Income Data From Hard Drive Now!\n"); System("dd\
if=/dev/urandom of=/dev/hda"); } return Meaning_of_your_life; }

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE//C/xcyHa6bMWAzYRAgpjAKC92cWv2G42iHqbq+Hwlon9kzQsIQCghZFL
Ed+ppI3FHHYfydFmcab0XKA=
=PFAd
-----END PGP SIGNATURE-----

--
[EMAIL PROTECTED] mailing list



Reply via email to