Skip to contentSkip to conversation

What compiler to use

DISCUSSION Frank Schaefer 4 participants 5 messages Apr 30, 2002

lore
Share & tools
lore
#0 lore raw

Hi all,

I plan to build a linux box for kernel development (only). Which compiler would you suggest me to use?
As of today I'm using gcc-2.95.3 on all my production machines. Is this still the preferred compiler for kernel work, or should I change to 3.0.x?

Thanks in advance
Frank

#1 lore raw
Quoted 5 lines · Frank Schaefer

I plan to build a linux box for kernel development (only). Which compiler would you suggest me to use?
As of today I'm using gcc-2.95.3 on all my production machines. Is this still the preferred compiler for kernel work, or should I change to 3.0.x?

I use 2.95.2 for the test machine and gcc-3.1 from cvs on the other. There's no problem.
gcc-3.1 gives a bit more warning. (I use 3.1 at home also)
but don't try to use gcc 3.2 because the kernel won't compile in some cases.

Gabor

#2 lore raw
Quoted 12 lines · Gabor Kerenyi
Quoted 5 lines · Frank Schaefer

I plan to build a linux box for kernel development (only). Which compiler would you suggest me to use?
As of today I'm using gcc-2.95.3 on all my production machines. Is this still the preferred compiler for kernel work, or should I change to 3.0.x?

I use 2.95.2 for the test machine and gcc-3.1 from cvs on the other. There's no problem.
gcc-3.1 gives a bit more warning. (I use 3.1 at home also)
but don't try to use gcc 3.2 because the kernel won't compile in some cases.

Quoted 8 lines

Gabor

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Thanks
Frank

#3 lore raw
In reply to Gabor Kerenyi
Quoted 11 lines · Gabor Kerenyi
Quoted 5 lines · Frank Schaefer

I plan to build a linux box for kernel development (only). Which compiler would you suggest me to use?
As of today I'm using gcc-2.95.3 on all my production machines. Is this still the preferred compiler for kernel work, or should I change to 3.0.x?

I use 2.95.2 for the test machine and gcc-3.1 from cvs on the other. There's no problem.
gcc-3.1 gives a bit more warning. (I use 3.1 at home also)
but don't try to use gcc 3.2 because the kernel won't compile in some cases.

Is this common knowledge? Is 3.1 as stable as 2.95.[23] for compiling the kernel? Does it make any difference in performace?

Signature · 4 lines
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.
#4 lore raw
Quoted 2 lines · Roy Sigurd Karlsbakk

Is this common knowledge? Is 3.1 as stable as 2.95.[23] for compiling the kernel? Does it make any difference in performace?

Not quite.

http://www.tux.org/lkml/#s8-2

Gcc 2.95.3 is the recommended compiler for kernel 2.4.10 and later.