lkml.org 
[lkml]   [1998]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: faster strcpy()
    On Sun, 26 Apr 1998, Richard B. Johnson wrote:

    <code snipped>

    > # gcc -O2 -o xxx xxx.c
    > # xxx
    > Length = 4095
    > Normal strcpy() Count = 32504
    > Strange strcpy() Count = 15352
    > Length = 4031
    > Normal strcpy() Count = 32495
    > Strange strcpy() Count = 15733
    > Length = 3967
    > Normal strcpy() Count = 33089
    > Strange strcpy() Count = 15831
    > Length = 3903
    > Normal strcpy() Count = 33883
    > Strange strcpy() Count = 16072
    > Length = 3839
    > Normal strcpy() Count = 34473
    > Strange strcpy() Count = 16506

    Length = 4095
    Normal strcpy() Count = 4919
    Strange strcpy() Count = 8446
    Length = 4031
    Normal strcpy() Count = 5493
    Strange strcpy() Count = 8641
    Length = 3967
    Normal strcpy() Count = 5709
    Strange strcpy() Count = 8793
    Length = 3903
    Normal strcpy() Count = 6489
    Strange strcpy() Count = 8991
    Length = 3839
    Normal strcpy() Count = 6829
    Strange strcpy() Count = 8944

    Your system is doing something funny.

    > Script done on Sun Apr 26 20:14:18 1998
    >
    > The 'C' library is glibc-2.0.5. Case closed.

    glibc-2.0.7pre1-4
    gcc --version
    2.7.2.3
    xxx.c compiled as above.


    Adam



    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

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