Re: Patches to compile the kernel with Intel's C/C++ compiler

From: Morten Rodal (morten_at_rodal.no)
Date: 11/11/03

  • Next message: Alexander Leidinger: "Re: Patches to compile the kernel with Intel's C/C++ compiler"
    Date: Tue, 11 Nov 2003 16:43:02 +0100
    To: Guido van Rooij <guido@gvr.org>
    
    
    

    Guido van Rooij wrote:
    > On Mon, Nov 10, 2003 at 10:22:21PM +0100, Alexander Leidinger wrote:
    >>Hi,
    >>
    >>at http://www.leidinger.net/FreeBSD/current-patches/ I have some patches
    >>which allow to compile the kernel with icc (CC=icc make depend && CC=icc
    >>make). They are a joint effort of Marius Strobl and me.
    >>
    >>The resulting kernel still has some issues (no NFS, some packet loss,
    >>... see icc.README in the above mentioned directory), but it boots and
    >>runs.
    >
    >
    > What are the benefits of running an icc compiled kernel?
    >

    The Intel C compiler is known to generate far better code for the
    Pentium 4 processor family (and more likely the Itanium processors), and
    probably others as well. It certanly beats gcc in most benchmark tests
    and other scientific applications.

    I have found that icc generates far more, and more accurate, warnings
    and errors for programs and this is probably what the FreeBSD kernel
    could benefit most from. Having more than one compiler helps the
    developers find bugs faster.

    -- 
    Morten Rodal
    
    



  • Next message: Alexander Leidinger: "Re: Patches to compile the kernel with Intel's C/C++ compiler"

    Relevant Pages

    • amd64 bitops fix for -Os
      ... filesystem, the kernel mostly hangs. ... When optimizing for speed, the generated code is such that the flags ... Obviously the asm statement must not rely on the compiler setting up ... -inline long find_first_zero_bit(const unsigned long * addr, ...
      (Linux-Kernel)
    • Re: amd64 bitops fix for -Os
      ... > kernel build. ... because its inline asm assumes at least one iteration ... the generated code is such that the flags ... although in a perfect world the compiler would be ...
      (Linux-Kernel)
    • Newbie Q: spca5xx webcam driver installation problem
      ... with the included default makefile. ... Building SPCA5XX driver for 2.5/2.6 kernel. ... # Setup the tools ... # Setup compiler warnings ...
      (comp.os.linux.setup)
    • Re: Problem setting up lm-sensors
      ... >> they built the kernel. ... >> Why does the Makefile not use .config? ... >> I assume no one wants to see that 727 line Makefile. ... >> question as to what compiler I should use. ...
      (comp.os.linux.misc)
    • Re: [INFO] Kernel strict versioning
      ... >> if you have the same kernel version on identical machines, ... And kernels compiled with one compiler are different than those compiled ... And it has distinctions on dozens of other configuration options too. ...
      (Linux-Kernel)