|
Message-ID: <CAGDMk9GQMiBwvSOhwQXbmG84xwr7Wbey7-nT9PRjAzkkpUPUhA@mail.gmail.com>
Date: Wed, 8 Apr 2015 16:16:05 -0400
From: John Mudd <johnbmudd@...il.com>
To: Alexander Monakov <amonakov@...ras.ru>
Cc: musl <musl@...ts.openwall.com>
Subject: Re: musl perf, 20% slower than native build?
I don't see any of those "a_*" names in the output of 'nm' or 'readelf -a'
on musl-1.1.8/lib/libc.so.
Here's my configure command:
./configure --prefix=$(pwd).install --syslibdir=/usr/rx30/musl/lib/
CFLAGS=-O3 CC=gcc
Here's a sample of the make output:
gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard
-frounding-math -D_XOPEN_SOURCE=700 -I./arch/i386 -I./src/internal
-I./include -pipe -fomit-frame-pointer -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -march=i486
-mtune=generic -Werror=implicit-function-declaration -Werror=implicit-int
-Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector -O3 -c -o
crt/crt1.o crt/i386/crt1.s
cp crt/crt1.o lib/crt1.o
gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard
-frounding-math -D_XOPEN_SOURCE=700 -I./arch/i386 -I./src/internal
-I./include -pipe -fomit-frame-pointer -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -march=i486
-mtune=generic -Werror=implicit-function-declaration -Werror=implicit-int
-Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector -O3 -fPIC
-c -o crt/Scrt1.o crt/i386/Scrt1.s
cp crt/Scrt1.o lib/Scrt1.o
gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard
-frounding-math -D_XOPEN_SOURCE=700 -I./arch/i386 -I./src/internal
-I./include -pipe -fomit-frame-pointer -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wa,--noexecstack -march=i486
-mtune=generic -Werror=implicit-function-declaration -Werror=implicit-int
-Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector -O3 -c -o
crt/crti.o crt/i386/crti.s
cp crt/crti.o lib/crti.o
On Wed, Apr 8, 2015 at 3:33 PM, Alexander Monakov <amonakov@...ras.ru>
wrote:
> That a_* functions appear in this profile implies they were not inlined,
> which
> is quite strange. Are you positive -O3 was used for your musl compile?
> Can
> you check the list of symbols in libc.so (e.g. using nm or `readelf -a`) to
> double check?
>
> Thanks.
>
> Alexander
>
>
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.