lkml.org 
[lkml]   [1999]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Possible GCC contamination of Linux
    Date
    From
    "Richard B. Johnson" <root@chaos.analogic.com> said:
    > On Tue, 21 Sep 1999, Kurt Garloff wrote:
    > > On Mon, Sep 20, 1999 at 02:43:07PM -0400, Richard B. Johnson wrote:
    > > > I compiled with -fno-builtins, in addition to what you advise, and found
    > > > that abs() was an indefined symbol. I added an abs() macro to
    > > > ../linux/include/stddef.h, i.e.,

    [...]

    > > Wait: What about the speed of builtin memcpy and the routines provided by
    > > the kernel? I think I remember a discussion about his. Anybody?

    > memcpy() and other routines that can be optimized for certain CPUs are
    > in the architecture-specific directories. The only built-in being used
    > that I found was abs().

    If the kernel really has better implementations of those than the compiler,
    why not port them into the compiler as builtins and be done with it? Having
    them around twice sounds like a waste to me...
    --
    Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
    Departamento de Informatica Fono: +56 32 654431
    Universidad Tecnica Federico Santa Maria +56 32 654239
    Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:54    [W:2.308 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site