View previous topic :: View next topic |
Author |
Message |
matrixise n00b
Joined: 09 Jul 2002 Posts: 11 Location: Belgium
|
Posted: Thu Jul 18, 2002 8:28 am Post subject: Making your kernel with gcc 3.1.1 |
|
|
if you want to compile your kernel with gcc 3.1.1, it's easy.
you edit your Makefile, and you change the variable CC=gcc to CC=gcc-3.1
if you have an athlon-xp like me, you can change this file : arch/i386/Makefile.
find the line : CONFIG_MK7, and you change "-march=athlon" in "-march=athlon-xp -mcpu=athlon-xp" |
|
Back to top |
|
|
rieger Tux's lil' helper
Joined: 14 Jun 2002 Posts: 136 Location: The Netherlands
|
Posted: Thu Jul 18, 2002 11:46 am Post subject: |
|
|
when you install 1.3 then the only gcc = gcc3.1; so the kernel should be compiled with gcc3.1 isn't it?
but as I think of it; have I dreamed or did I see some march=i486 messages during kernel compile?
don't know it anymore. _________________ haree |
|
Back to top |
|
|
matrixise n00b
Joined: 09 Jul 2002 Posts: 11 Location: Belgium
|
Posted: Thu Jul 18, 2002 3:03 pm Post subject: |
|
|
i have a 1.2, and my GCC is gcc 3.1 lol
i don't have errors but many of warnings.
you can specify your CPU in the Makefiles. |
|
Back to top |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Thu Jul 18, 2002 8:01 pm Post subject: |
|
|
rieger wrote: | when you install 1.3 then the only gcc = gcc3.1; so the kernel should be compiled with gcc3.1 isn't it?
but as I think of it; have I dreamed or did I see some march=i486 messages during kernel compile?
don't know it anymore. |
If u have theres a setting on menuconfig to chage ur processor. |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Sat Jul 20, 2002 12:45 pm Post subject: |
|
|
note that you only need to change the gcc-3.1 if your also having gcc-2.x.x installed.
it does compile stuff with a lot of safe flags though, to ensure stability.
I tried changing some stuff around a while ago actually, bzip2 gained about 1-2 seconds, so I figured it wasn't worth it
if someone can show me some benchmarks that shows compiling the kernel with optimized flags helps, that'd be cool |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Mon Aug 19, 2002 1:30 am Post subject: |
|
|
GCC3 to OTG. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|