Difference between revisions of "GCC"

From LinuxMIPS
Jump to: navigation, search
m (Linux 2.4: typo)
(External links)
Line 18: Line 18:
 
* [http://www.gnu.org/software/gcc/gcc-3.4/mips-abi.html MIPS ABI Changes in GCC 3.4]
 
* [http://www.gnu.org/software/gcc/gcc-3.4/mips-abi.html MIPS ABI Changes in GCC 3.4]
 
* [http://www.nabble.com/gcc-f1154.html GCC Forum] - hosted by [http://www.nabble.com Nabble] archiving all gcc mailing lists into a searchable forum.
 
* [http://www.nabble.com/gcc-f1154.html GCC Forum] - hosted by [http://www.nabble.com Nabble] archiving all gcc mailing lists into a searchable forum.
 +
* [http://www.ibm.com/developerworks/linux/library/l-gcc-hacks/ GCC hacks in the Linux kernel]

Revision as of 15:15, 12 August 2010

Kernel builds with gcc

Linux 2.4

The recommended compiler for building Linux 2.4 is gcc 2.95. New compilers upto gcc 3.3 have been used successfully to build the kernel however with gcc 3.4 there may be problems when certain configurations. With Linux 2.4 being in deep freeze mode we generally don't intend to fix such problems but rather recommend to use an older compiler for the kernel.

The latest "official" GCC 2 is version 2.95.3. The GCC 2.96 is unofficial massively patched version. It provides more efficient optimization with -O2, more strict syntax checkhing and supports more recent C++ standards. Unfortuntely, C++ ABI is not compatible with "official" 2.95.3 nor 3.0.

Red Hat Speaks on gcc 2.96-RH

Linux 2.6

Kernels upto 2.6.15 require a gcc 2.95..4.0. Gcc 4.1 is still considered experimental at this point so not recommended where reliability matters. Kernels newer than 2.6.15 require at least gcc 3.2. See a related article on Kerneltrap.

Gcc 3.4.6 incorrectly inlines arch_mem_init().

SDE 5 is based on gcc 2.96 and SDE 6 is based on gcc 3.4.

External links