From: John Mudd <johnbmudd@gmail.com>
To: Alexander Monakov <amonakov@ispras.ru>
Cc: musl <musl@lists.openwall.com>
Subject: Re: musl perf, 20% slower than native build?
Date: Wed, 8 Apr 2015 16:16:05 -0400 [thread overview]
Message-ID: <CAGDMk9GQMiBwvSOhwQXbmG84xwr7Wbey7-nT9PRjAzkkpUPUhA@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.11.1504082219250.338@monopod.intra.ispras.ru>
[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]
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@ispras.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
>
>
[-- Attachment #2: Type: text/html, Size: 2566 bytes --]
next prev parent reply other threads:[~2015-04-08 20:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 15:33 John Mudd
2015-04-08 15:58 ` Alexander Monakov
2015-04-08 16:05 ` Szabolcs Nagy
2015-04-08 19:10 ` John Mudd
2015-04-08 19:28 ` Daniel Cegiełka
2015-04-08 20:59 ` Paul Schutte
2015-04-09 6:50 ` Daniel Cegiełka
2015-04-09 17:28 ` Execinfo.h, backtrace is needed Jean-Marc Pigeon
2015-04-09 17:34 ` Rich Felker
2015-04-09 17:57 ` Alexander Monakov
2015-04-10 14:30 ` Jean-Marc Pigeon
2015-04-08 19:33 ` musl perf, 20% slower than native build? Alexander Monakov
2015-04-08 20:16 ` John Mudd [this message]
2015-04-08 20:24 ` John Mudd
2015-04-08 21:48 ` John Mudd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGDMk9GQMiBwvSOhwQXbmG84xwr7Wbey7-nT9PRjAzkkpUPUhA@mail.gmail.com \
--to=johnbmudd@gmail.com \
--cc=amonakov@ispras.ru \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).