Displaying 19 results from an estimated 19 matches for "zhunan".
2009 Sep 15
2
[LLVMdev] Replace gcc with llvm-gcc
...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 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:~/...
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
-emit-llvm"
configure will failed when it checks the default output filena...
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: ?...
2009 Sep 15
1
[LLVMdev] Replace gcc with llvm-gcc
...Linux. On 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...
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 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 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 meth...
2009 Oct 20
2
[LLVMdev] strace for whole-program bitcodes
...s the only 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 th...
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 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...
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 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),w...
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 un...
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...
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 nati...
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 18
0
[LLVMdev] a bug for llvm-gcc??
...st there.
and I use collect2 -plugin to link the generated object files
manually,everything is OK, the generated executable can also give
the expected result.
Is it a bug for llvm-gcc can not search the correct plugin library file??If
not,what's the matter with my operations?
Best regards.
ZhuNan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090918/9d4989fc/attachment.html>
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 follow...
2009 Sep 20
2
[LLVMdev] ld with gold-plugin can do this?
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:
>From the document and also my experience on using it,"ld -plugin...."
will only generate an executable by link several LLVM bitcode file
together,but how to make it generate a whole-program bitcode file?(even
archieve it manually is
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
Hi,all
I'm using ubuntu8.04 and I'm installing gold-plugin along with the
document of that,
After I built the binutils and LLVM with plugin enabling,and I also
replace ld with ld-new which supports plugin,I tried to compile a hello
world program by this:
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