search for: zhunansjtu

Displaying 20 results from an estimated 31 matches for "zhunansjtu".

2009 Sep 15
2
[LLVMdev] Replace gcc with llvm-gcc
...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 telefonica.net> > Content-Type: text/plain; charset=windows-1252 > > zhunan <zhunansjtu at gmail.com> writes: > > > Recently I met a question when I want to replace gcc with llvm-gcc > > through configure script(command). > > > > For simply,described like that > > > > I typed as following > > > > 1.zhunan at sjtu:~/workplace/$ ./c...
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 Sep 2009 03:16:10 +0200 >> From: ?scar Fuentes &l...
2009 Oct 20
2
[LLVMdev] strace for whole-program bitcodes
...available tool,so I think gold-plugin is not very useful to archieve the goal,I'm considering to modify the codes of llvm-gcc's collect2 to make it call llvm-ld automatically when receive certain options. Thanks 在 2009-10-19一的 13:58 -0400,Rafael Espindola写道: > 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...
2009 Oct 31
3
[LLVMdev] Something wrong with my libpthread.so
Hi,all I tried to run the generated whole-program bitcode of BIND,but I got some information: 0 lli 0x0000000000feda16 1 lli 0x0000000000fed88f 2 libpthread.so.0 0x0000003df340eee0 3 libc.so.6 0x0000003df28332f5 gsignal + 53 4 libc.so.6 0x0000003df2834b20 abort + 384 5 libc.so.6 0x0000003df282c2fa __assert_fail + 234 6 lli
2009 Sep 17
0
[LLVMdev] Where should I put libLLVMgold.so??
2009/9/17 Nan Zhu <zhunansjtu at gmail.com>: > Yes,it's indeedly the correct one,and new ld can also support -plugin > option,I don't know the reason of the trouble, Does ld actually work if you pass libLLVMGold.so to it? Try to link with llvm-gcc without the -use-gold-plugin option and with -v (it will fail a...
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 co...
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 I...
2009 Nov 01
0
[LLVMdev] Something wrong with my libpthread.so
Hi, On Sat, Oct 31, 2009 at 11:42 AM, Nan Zhu <zhunansjtu at gmail.com> wrote: > Hi,all > > I tried to run the generated whole-program bitcode of BIND,but I got some > information: > > 0   lli             0x0000000000feda16 > 1   lli             0x0000000000fed88f > 2   libpthread.so.0 0x0000003df340eee0 > 3   libc.so.6      ...
2009 Nov 01
1
[LLVMdev] Something wrong with my libpthread.so
Mahadevan R wrote: > Hi, > > On Sat, Oct 31, 2009 at 11:42 AM, Nan Zhu <zhunansjtu at gmail.com> wrote: >> Hi,all >> >> I tried to run the generated whole-program bitcode of BIND,but I got some >> information: >> >> 0 lli 0x0000000000feda16 >> 1 lli 0x0000000000fed88f >> 2 libpthread.so.0 0x0000003df...
2009 Nov 07
2
[LLVMdev] linking share libraries when building whole-program bitcode file
Hi,all I'm working on how to build a whole-program bitcode file for big projects with a general solution,and I met a problem I simplify it as this: llvm-gcc -c -emit-llvm test.c llvm-ld test.o -lpthread //here llvm-ld tells me that "Cannot find library pthread" then I do this: llvm-ld test.o lli -load=/usr/lib/libpthread.so a.out.bc //lli tells me the /usr/lib/libpthread.so
2009 Nov 17
0
[LLVMdev] linking share libraries when building whole-program bitcode file
Nan Zhu <zhunansjtu at gmail.com> writes: > llvm-gcc -c -emit-llvm test.c > > llvm-ld test.o -lpthread //here llvm-ld tells me that "Cannot find library > pthread" $ llvm-gcc -c -emit-llvm test.c $ llvm-ld test.o -lpthread $ ./a.out Error opening '/usr/lib/libpthread.a': /usr/lib/libp...
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
Yes,it's indeedly the correct one,and new ld can also support -plugin option,I don't know the reason of the trouble, 2009/9/17 Rafael Espindola <espindola at google.com> > > llvm-gcc -use-gold-plugin a.a b.o -o hello > > > > which is similar with the example in the document,it tells me that > > libLLVMgold.so can not be found ,but I truly put it in 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 li...
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 15
1
[LLVMdev] Replace gcc with llvm-gcc
...Mac OS X, I think the linker with Xcode can link bitcode files together, but I'm not sure. Please note that I haven't tried this myself yet; it's one of the things I will try the next time I need to create a single bitcode file for an executable. -- John T. > 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 Sep 2009 03:16...
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 Jul 01
1
[LLVMdev] BInary encode of LLVM's ISA?
Hi,all Where may I find the binary encode of llvm's ISA? I would like to load the instructions from llvm bitcode file and translate it to another kind of ISA dinamically,but I searched all docs in llvm.org,nothing has been found ,can anyone help me? zhunan 2009.7.1
2009 Jul 20
1
[LLVMdev] Got a "corrupted double-linked list" error?
Hi,all Recently,I write some code to implement the following funtions: I make use the codes of "llvm-dis" to disassemble the bitcode file and do some change on it,after that ,"my llvm-as" assembles the changed file to generate a bitcode file. But I got a "corrupted double-linked list" error when "my llvm-as" works,however,when I do nothing on the
2009 Sep 15
1
[LLVMdev] Replace gcc with llvm-gcc???
Hi,all Recently I met a question when I want to replace gcc with llvm-gcc through configure script(command). For simply,described like that I typed as following 1.zhunan at sjtu:~/workplace/$ ./configure CC=llvm-gcc CFLAGS="-S -emit-llvm" configure will failed when it checks whether C compiler is working 2.zhunan at sjtu:~/workplace/$ ./configure CC=llvm-gcc CFLAGS="-c
2009 Sep 18
2
[LLVMdev] Where should I put libLLVMgold.so??
OMG,that's just my situation... I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. Debug llvm-gcc????? Any one installed the gold-plugin successfully can give some instruction? 2009/9/18 Rafael Espindola <espindola at google.com> > 2009/9/17 Nan Zhu <zhunansjtu at gmail.com>: > > Yes,it's indeedly the correct one,and new ld can also support -plugin > > option,I don't know the reason of the trouble, > > Does ld actually work if you pass libLLVMGold.so to it? Try to link > with llvm-gcc without the -use-gold-plugin option and...