Gentoo Archives: gentoo-dev

From: "C Bergström" <cbergstrom@×××××××××.com>
To: "Anthony G. Basile" <gentoo-dev@l.g.o>
Cc: llvm@g.o
Subject: Re: [gentoo-dev] New project: LLVM
Date: Fri, 19 Aug 2016 17:14:26
Message-Id: CAOnawYroEQdgL-jDfp34+N=gMhtBbH02rV=5aa0WQpv22kaXAQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] New project: LLVM by Lei Zhang
1 I finally got it to build and here's the size numbers
2 952K ./lib/libc++abi.a
3 616K ./lib/libc++abi.so.1.0
4
5 If the above isn't enough motivation and you really want benchmarks
6 which prove it's a pig... I'll try to figure something else
7
8 Not exactly a 1:1 comparison because I think other things are mixed in, but...
9 352K /usr/lib/gcc/x86_64-linux-gnu/4.9/libsupc++.a
10 356K /usr/lib/gcc/x86_64-linux-gnu/5/libsupc++.a
11
12 In the land of HPC we frequently statically link stuff... not that
13 864KB is big by any sort of modern definition, but it does raise
14 questions..
15
16
17 On Sat, Aug 20, 2016 at 12:54 AM, Lei Zhang <zhanglei.april@×××××.com> wrote:
18 > 2016-08-19 11:11 GMT+08:00 C Bergström <cbergstrom@×××××××××.com>:
19 >> I think you're getting a bit confused
20 >>
21 >> libsupc++ is the default now, from GNU
22 >>
23 >> libcxxabi is the bloated runtime from Apple
24 >>
25 >> libcxxrt is the faster c++ runtime, PathScale+David Chisnall, which
26 >> PathScale and FreeBSD use by default. We don't need a version number
27 >> because it's pretty much rock solid stable for a while.
28 >> I'd encourage you to consider libcxxrt for at least the code size and
29 >> performance reasons. Build it and you'll see. Locally my unoptimized
30 >> libcxxrt.so is like 88K. How much is your libcxxabi (static and
31 >> shared)
32 >>
33 >> 88K /opt/enzo-2016-06-26/lib/6.0.983/x8664/64/libcxxrt.so
34 >> 140K /opt/enzo-2016-06-26/lib/6.0.983/x8664/64/libcxxrt.a
35 >> // This seems larger than I remember and I need to check why.
36 >>
37 >> https://github.com/pathscale/libcxxrt
38 >
39 > Currently libcxxrt is the default ABI lib for libc++ in Gentoo. I mean
40 > to replace it with libc++abi in that context.
41 >
42 > I'm interested in benchmarking to reveal the claimed difference in
43 > performance. Perhaps I can build the same program against libcxxrt and
44 > libc++abi respectively and see how it behaves. Do you have some hints
45 > on what kind of programs I should test?
46 >
47 >
48 > Thanks,
49 > Lei
50 >

Replies

Subject Author
Re: [gentoo-dev] New project: LLVM Luca Barbato <lu_zero@g.o>
Re: [gentoo-dev] New project: LLVM Lei Zhang <zhanglei.april@×××××.com>