search for: zhoujinguo

Displaying 15 results from an estimated 15 matches for "zhoujinguo".

2012 Sep 25
2
[LLVMdev] Inline ASM Problem
Dear Ciao, Duncan, I am using linux--Intel X86-64. Do I need to implement an asm parser for LLVM JIT myself or there exists some tools for it? Thank you. BestAndy Hi Andy, On 25/09/12 14:19, Zhoujinguo wrote: > Sorry that I have implemented nothing for it. inline asm won't work without an asm parser, which is something that knows how to turn assembler strings like "mov %eax, %ebx" into opcodes, i.e. the numbers which, when placed into memory, cause the processor to execute the &...
2012 Sep 25
2
[LLVMdev] Inline ASM Problem
Sorry that I have implemented nothing for it. aget is not my own project which is a public project of paralell "wget". I only want to use it as a common benchmark.  Do I need to implement anything for it? Thank you BestAndy Hi Andy, On 25/09/12 12:10, Zhoujinguo wrote: > > Thank you for replying. > > The target is "aget" which is attached. The compiling shell is also attached. since this seems to be your own custom target I ask: did you implement an asm parser for your target? Best wishes, Duncan. > > Best > Andy > >...
2012 Sep 25
0
[LLVMdev] Inline ASM Problem
Hi Andy, On 25/09/12 14:19, Zhoujinguo wrote: > Sorry that I have implemented nothing for it. inline asm won't work without an asm parser, which is something that knows how to turn assembler strings like "mov %eax, %ebx" into opcodes, i.e. the numbers which, when placed into memory, cause the processor to execute the &...
2012 Sep 25
0
[LLVMdev] Inline ASM Problem
On Tue, Sep 25, 2012 at 09:13:10PM +0800, Zhoujinguo wrote: > Dear Ciao, Duncan, > > I am using linux--Intel X86-64. Do I need to implement an asm parser for LLVM > JIT myself or there exists some tools for it? Thank you. x86 should have the most mature ASM parser. Either file bug report or enhance the x86 ASM parser yourself, I guess...
2012 Sep 25
0
[LLVMdev] Inline ASM Problem
Hi Andy, On 25/09/12 12:10, Zhoujinguo wrote: > > Thank you for replying. > > The target is "aget" which is attached. The compiling shell is also attached. since this seems to be your own custom target I ask: did you implement an asm parser for your target? Best wishes, Duncan. > > Best > Andy > >...
2012 Nov 02
3
[LLVMdev] How can I build Mysql and Apache using LLVM
On Thu, Nov 1, 2012 at 10:04 PM, Zhoujinguo <zhoujinguo1988 at yahoo.cn> wrote: > Hi, > > I am interested in building some large projects to get single .bc files. > Is there an easy way to do this? Or do I have to go through and understand > the whole makefile script? > This is what LLVM's "LTO" (Link...
2012 Sep 25
2
[LLVMdev] Inline ASM Problem
Thank you for replying. The target is "aget" which is attached. The compiling shell is also attached. Best Andy > If I use "-use-mcjit" argument, the error message changes to "LLVM ERROR: > Inline asm not supported by this streamer because we don't have an asm parser > for this target"   What's your target? Please attach your example code so
2012 Apr 09
0
[LLVMdev] Problem on instrumentation
...------------------------------------------------------- Name: 甄凯(ZhenKai) Homepage:http://www.renren.com/262729393 Email: zhenkaixd at 126.com or 846227103 at qq.com TEL: 15810729006(Beijing) Address: Room I-406, Central Building, Tsinghua University, Beijing, China. 100084. At 2012-04-09 11:27:26,Zhoujinguo <zhoujinguo1988 at yahoo.cn> wrote: | Hi, I am instrumenting a piece of code. I want to insert a function call at the interested area, and do something in the called function which is written by myself. I have succeed on implementing the pass, and getting the instrmented code. However, I...
2012 Apr 09
2
[LLVMdev] Problem on instrumentation
Hi, I am instrumenting a piece of code. I want to insert a function call at the interested area, and do something in the called function which is written by myself. I have succeed on implementing the pass, and getting the instrmented code. However, I am not sure where to put this function, and what kind of linkage I should use for this function. Currently I use External linkage which is
2012 Nov 02
0
[LLVMdev] How can I build Mysql and Apache using LLVM
Hi, I am interested in building some large projects to get single .bc files. Is there an easy way to do this? Or do I have to go through and understand the whole makefile script? Thank you very much. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121102/109cb363/attachment.html>
2012 Sep 25
5
[LLVMdev] Can clang generate the same bitcode with the toolchains that have same version of libraries but different targets
Hi, I'm using clang to build my project as follows: $ clang++ -ccc-host-triple arm-none-linux-gnueabi --sysroot=/usr/local/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/ -o foo.o -emit-llvm -c foo.cpp $ clang++ -ccc-host-triple arm-none-linux-gnueabi --sysroot=/usr/local/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/ -o main.o -emit-llvm -c main.cpp $ llvm-link foo.o main.o -o
2012 Sep 18
0
[LLVMdev] Problems on getting UNREACHABLE executed
Hi, I am currently using llvm to compile memcache to get the bitcode. I simply change all the "gcc -c" command to "clang -emit-llvm -c", and output ".o" to ".bc". And all gcc link command to llvm-ld. By these means, I successfully get the bitcode file, but when I run it using "lli", it fails with the error: UNREACHABLE executed!0 lli
2012 Sep 25
0
[LLVMdev] Inline ASM Problem
Hi I am using LLVM on "aget". I have got a error message "LLVM ERROR: JIT does not support inline asm". If I use "-use-mcjit" argument, the error message changes to "LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm parser for this target" What should I do? Thank you. Best Andy -------------- next part -------------- An
2012 Sep 18
0
[LLVMdev] Problems on getting UNREACHABLE executed
Dear Ciao, Duncan, Thank you for replying. I tried and the error goes away. But there comes a new error: LLVM ERROR: Unknown object format! How can I solve this problem? Thank you! BestAndy --- 12年9月18日,周二, Duncan Sands <baldrick at free.fr> 写道: 发件人: Duncan Sands <baldrick at free.fr> 主题: Re: [LLVMdev] Problems on getting UNREACHABLE executed 收件人: llvmdev at cs.uiuc.edu 日期:
2012 Apr 07
3
[LLVMdev] Problems on getting the OPT resultant bitcode
Hi, I want to write a piece of code to instrument c++ programs. I have finished writing the pass, but I do not know how to get the resultant bitcode I ran OPT with the following arguments: opt -basiccg -basicaa -load /home/andy/llvm-3.0.src/Release/lib/InstTest.so -InstTest </home/andy/llvm-3.0.src/workspace/threadTest/Debug/threadTest.bc> -o=</home/andy/output/out.bc> /dev/null