similar to: [LLVMdev] ld with gold-plugin can do this?

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] ld with gold-plugin can do this?"

2009 Sep 20
0
[LLVMdev] ld with gold-plugin can do this?
zhunan wrote: > Hi,all > > I have installed the gold-plugin and it can run correctly,but I still > have another two questions: > > 1.Can gold-plugin generate a bitcode file: No. The task of linking many .bc files into a single .bc file falls on llvm-ld and llvm-link. A common followup question is "but how do I link native libraries into my .bc file". You
2009 Sep 21
2
[LLVMdev] ld with gold-plugin can do this?
A common followup question is "but how do I link native libraries into my .bc file". You don't. A .bc file is llvm ir, you can't put a native binary library into a .bc (barring sticking it in as a string, etc). The build then looks like: a) 'llvm-gcc -c -flo -O2' to generate the .bc files. b) 'llvm-ld' to combine them into a single .bc. No, not a .so nor a .a.
2009 Sep 22
2
[LLVMdev] ld with gold-plugin can do this?
Nick Lewycky wrote: > Sanjiv.Gupta at microchip.com wrote: >> >> >> A common followup question is "but how do I link native libraries into >> my .bc file". You don't. A .bc file is llvm ir, you can't put a native >> binary library into a .bc (barring sticking it in as a string, etc). >> >> The build then looks like: >> >>
2009 Sep 21
0
[LLVMdev] ld with gold-plugin can do this?
Sanjiv.Gupta at microchip.com wrote: > > > A common followup question is "but how do I link native libraries into > my .bc file". You don't. A .bc file is llvm ir, you can't put a native > binary library into a .bc (barring sticking it in as a string, etc). > > The build then looks like: > > a) 'llvm-gcc -c -flo -O2' to generate the .bc
2009 Sep 23
0
[LLVMdev] ld with gold-plugin can do this?
Sanjiv Gupta wrote: > Nick Lewycky wrote: >> Sanjiv.Gupta at microchip.com wrote: >>> >>> >>> A common followup question is "but how do I link native libraries into >>> my .bc file". You don't. A .bc file is llvm ir, you can't put a native >>> binary library into a .bc (barring sticking it in as a string, etc). >>>
2009 Oct 20
2
[LLVMdev] strace for whole-program bitcodes
Yes,but when I just simply replace lto_codegen_compile(cg, ...) with lto_codegen_write_merged_modules(cg, "/path/to/output.bc") in the gold-plugin.cpp to see if it will generate a correct bc file,the llvm-gcc/llvm-g++ will call the native ld in the linking step,which causes the failture because of that ld can not recognize an object file which contains LLVM's IL. I understand the
2009 Oct 20
0
[LLVMdev] strace for whole-program bitcodes
2009/10/19 zhunan <zhunansjtu at gmail.com>: > Yes,but when I just simply replace lto_codegen_compile(cg, ...) with > lto_codegen_write_merged_modules(cg, "/path/to/output.bc") in the > gold-plugin.cpp to see if it will generate a correct bc file,the > llvm-gcc/llvm-g++ will call the native ld in the linking step,which > causes the failture because of that ld can not
2009 Oct 18
2
[LLVMdev] strace for whole-program bitcodes
Thank you for the reply,but I meant that when we building,we can not use the native tools such ar and as to process the llvm files,we must have the ability to call llvm-ar and llvm-as instead of the native ones. 在 2009-10-17六的 19:35 -0700,Nick Lewycky写道: > zhunan wrote: > > Hi, > > > > I don't think just use gold-plugin even modified is enough for the task > > of
2009 Sep 19
4
[LLVMdev] Where should I put libLLVMgold.so??
Yes,but ubuntu's directory structure is not exactly the same as the classic linux distribute, I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is also in. Strange situation,is it a bug for llvm-gcc???? 在 2009-09-18五的 12:58 +0300,Török Edwin写道: > On 2009-09-18 03:06, Nan Zhu wrote: > > OMG,that's just my situation... > > > > I can link with
2009 Oct 19
0
[LLVMdev] strace for whole-program bitcodes
2009/10/17 zhunan <zhunansjtu at gmail.com>: > Thank you for the reply,but I meant that when we building,we can not use > the native tools such ar and as to process the llvm files,we must have > the ability to call llvm-ar and llvm-as instead of the native ones. We can use the native tools if they understand llvm IL :-) That is what the plugin does. With it installed you can run
2009 Oct 18
3
[LLVMdev] strace for whole-program bitcodes
Hi, I don't think just use gold-plugin even modified is enough for the task of building a whole-program bc file. When we want to build a whole-program bc file by a general solution(I meant that we can use such a method for all kinds of build system),we need not only a gold-plugin to do what llvm-ld does,but also some mechanisms,not a simple trick to modify the env variables,to run
2009 Sep 15
2
[LLVMdev] Replace gcc with llvm-gcc
I truly get the bytecode file for each souce file,but can I use llvm-link to link them into a whole-program one automatically through some scripts? > > Message: 27 > Date: Tue, 15 Sep 2009 03:16:10 +0200 > From: ?scar Fuentes <ofv at wanadoo.es> > Subject: Re: [LLVMdev] Replace gcc with llvm-gcc??? > To: llvmdev at cs.uiuc.edu > Message-ID: <87vdjlnh2d.fsf at
2009 Sep 15
0
[LLVMdev] Replace gcc with llvm-gcc
Just set llvm-ld as the default ld . Such as LD = llvm-ld in makefile, if it's not working, then there is no solution 2009/9/15, zhunan <zhunansjtu at gmail.com>: > I truly get the bytecode file for each souce file,but can I use > llvm-link to link them into a whole-program one automatically through > some scripts? > > >> >> Message: 27 >> Date: Tue, 15
2009 Sep 19
0
[LLVMdev] Where should I put libLLVMgold.so??
2009/9/18 zhunan <zhunansjtu at gmail.com>: > Yes,but ubuntu's directory structure is not exactly the same as the > classic linux distribute, > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > also in. > > Strange situation,is it a bug for llvm-gcc???? Could be. Are you comfortable using gdb? Last time I looked it was working for me.
2009 Sep 19
0
[LLVMdev] Where should I put libLLVMgold.so??
On 2009-09-19 03:28, zhunan wrote: > Yes,but ubuntu's directory structure is not exactly the same as the > classic linux distribute, > > I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is > also in. > > Are you sure that is llvm-gcc's cc1, and not your system compiler's? Try this: $ llvm-gcc -### -x c /dev/null Then look for a line
2009 Oct 18
0
[LLVMdev] strace for whole-program bitcodes
zhunan wrote: > Hi, > > I don't think just use gold-plugin even modified is enough for the task > of building a whole-program bc file. > > When we want to build a whole-program bc file by a general solution(I > meant that we can use such a method for all kinds of build system),we > need not only a gold-plugin to do what llvm-ld does,but also some > mechanisms,not a
2009 Jul 16
3
[LLVMdev] llvm-ld -disable-opt behavior.
On Wed, 2009-07-15 at 10:37 -0700, Devang Patel wrote: > On Wed, Jul 15, 2009 at 9:32 AM, sanjiv gupta<sanjiv.gupta at microchip.com> wrote: > > Consider the example command line below > > > > $ llvm-ld -disable-opt hello.bc -l std -o hello.out > > > > Why does -disable-opt links in all the bitcode from the libstd.so into > > hello.out? > > ...
2009 Jul 15
3
[LLVMdev] llvm-ld -disable-opt behavior.
Consider the example command line below $ llvm-ld -disable-opt hello.bc -l std -o hello.out Why does -disable-opt links in all the bitcode from the libstd.so into hello.out? - Sanjiv
2009 Jul 16
0
[LLVMdev] llvm-ld -disable-opt behavior.
On Wed, Jul 15, 2009 at 7:29 PM, sanjiv gupta<sanjiv.gupta at microchip.com> wrote: > On Wed, 2009-07-15 at 10:37 -0700, Devang Patel wrote: >> On Wed, Jul 15, 2009 at 9:32 AM, sanjiv gupta<sanjiv.gupta at microchip.com> wrote: >> > Consider the example command line below >> > >> > $ llvm-ld -disable-opt hello.bc -l std -o hello.out >> >
2010 Jun 28
4
[LLVMdev] build errors while cross compiling llvm-gcc for ARM
> exactly Well, in general, there is no connection between the performance on x86 and on ARM. You can try to profile your code and find what causes the speedup on x86 and figure out the slowdowns on ARM. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University