Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1560911 > unrolled thread
| Started by | Alexei Starovoitov <alexei.starovoitov@gmail.com> |
|---|---|
| First post | 2017-01-17 19:40 +0100 |
| Last post | 2017-01-17 20:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2017-01-17 19:40 +0100
Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-17 20:10 +0100
| From | Alexei Starovoitov <alexei.starovoitov@gmail.com> |
|---|---|
| Date | 2017-01-17 19:40 +0100 |
| Subject | Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case |
| Message-ID | <t0GPN-25I-49@gated-at.bofh.it> |
On Tue, Jan 17, 2017 at 5:38 AM, Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > > [acme@jouet linux]$ ls -lah /tmp/perf > -rwxr-xr-x. 1 acme acme 4.4M Jan 17 10:29 /tmp/perf > [acme@jouet linux]$ size /tmp/perf > text data bss dec hex filename > 3954488 622440 23912104 28489032 1b2b548 /tmp/perf > [acme@jouet linux]$ ldd /tmp/perf | egrep -i llvm\|clang > libclangAST.so.40 => /usr/local/lib/libclangAST.so.40 (0x00007f4964981000) ... > libLLVMSystemZDisassembler.so.40 => /usr/local/lib/libLLVMSystemZDisassembler.so.40 (0x00007f495fe70000) ... > libLLVMSparcDisassembler.so.40 => /usr/local/lib/libLLVMSparcDisassembler.so.40 (0x00007f495f14f000) ... > libLLVMPowerPCDisassembler.so.40 => /usr/local/lib/libLLVMPowerPCDisassembler.so.40 (0x00007f495de94000) ... > libLLVMMSP430CodeGen.so.40 => /usr/local/lib/libLLVMMSP430CodeGen.so.40 (0x00007f495c79d000) ... > libLLVMMipsDisassembler.so.40 => /usr/local/lib/libLLVMMipsDisassembler.so.40 (0x00007f495bf73000) I think the static binary shouldn't be including all llvm backends. It's not clear to me why .so pulls them all. fyi I typically configure llvm with: -DLLVM_TARGETS_TO_BUILD="X86;BPF"
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2017-01-17 20:10 +0100 |
| Subject | Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case |
| Message-ID | <t0HiO-2uu-21@gated-at.bofh.it> |
| In reply to | #1560911 |
Em Tue, Jan 17, 2017 at 10:27:39AM -0800, Alexei Starovoitov escreveu: > On Tue, Jan 17, 2017 at 5:38 AM, Arnaldo Carvalho de Melo > <acme@kernel.org> wrote: > > [acme@jouet linux]$ ls -lah /tmp/perf > > -rwxr-xr-x. 1 acme acme 4.4M Jan 17 10:29 /tmp/perf > > [acme@jouet linux]$ size /tmp/perf > > text data bss dec hex filename > > 3954488 622440 23912104 28489032 1b2b548 /tmp/perf > > [acme@jouet linux]$ ldd /tmp/perf | egrep -i llvm\|clang > > libclangAST.so.40 => /usr/local/lib/libclangAST.so.40 (0x00007f4964981000) > ... > > libLLVMSystemZDisassembler.so.40 => /usr/local/lib/libLLVMSystemZDisassembler.so.40 (0x00007f495fe70000) > ... > > libLLVMSparcDisassembler.so.40 => /usr/local/lib/libLLVMSparcDisassembler.so.40 (0x00007f495f14f000) > ... > > libLLVMPowerPCDisassembler.so.40 => /usr/local/lib/libLLVMPowerPCDisassembler.so.40 (0x00007f495de94000) > ... > > libLLVMMSP430CodeGen.so.40 => /usr/local/lib/libLLVMMSP430CodeGen.so.40 (0x00007f495c79d000) > ... > > libLLVMMipsDisassembler.so.40 => /usr/local/lib/libLLVMMipsDisassembler.so.40 (0x00007f495bf73000) > I think the static binary shouldn't be including all llvm backends. > It's not clear to me why .so pulls them all. > fyi I typically configure llvm with: > -DLLVM_TARGETS_TO_BUILD="X86;BPF" Humm, so this is a limitation of the LLVM libraries? I.e. people linking against it should ask for a subset of backends so that would be dlopened out of a larger set builtin, say, in a generic distro shipped llvm/clang package? - Arnaldo
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web