search for: lyc364

Displaying 7 results from an estimated 7 matches for "lyc364".

Did you mean: l1364
2013 Dec 16
0
[LLVMdev] How can I obtain upper bound of a pointer?
This is rather off-topic for LLVM, it's a C programming question and the C answer is: you can't. C doesn't expose any way to find the upper limit of 'Ptr' you just have to keep track of what size you used yourself. On Sun, Dec 15, 2013 at 6:22 PM, 李永超 <lyc364 at gmail.com> wrote: > Hi, > How can I obtain the upper bound of a pointer in the code? For example, I > have > a pointer Ptr which points to a block of memory that is allocated by > malloc, say, > > Ptr = malloc(size); > > > Then what should I do if I am going to...
2014 Apr 24
3
[LLVMdev] getMetadata(“dbg”) returns NULL
Hi, getMetadata(“dbg”) returns NULL for such a small program as follows: int main(){ char a[10], b[2]; if(a[0] != 0 && a[1] != 0){ strcpy(a, b); } return 0; } The compiling command is: llvm-gcc --emit-llvm -g -c ./src.c I also tried the solutions I found through Google: http://stackoverflow.com/questions/14943447/llvm-line-number-of-an-instruction
2013 Dec 16
3
[LLVMdev] How can I obtain upper bound of a pointer?
Hi, How can I obtain the upper bound of a pointer in the code? For example, I have a pointer Ptr which points to a block of memory that is allocated by malloc, say, Ptr = malloc(size); Then what should I do if I am going to get the upper bound of the memory block that is pointed to by Ptr in the runtime? Thanks, Ben -------------- next part -------------- An HTML attachment was scrubbed...
2013 Nov 22
0
[LLVMdev] How to obtain CFG using llvm-gcc?
...on of global variables and functions. Each function is essentially a control flow graph. You can quickly take a look at a CFG by doing something like... clang -emit-llvm -c hello.c -o hello.bc opt -analyze -view-cfg hello.bc Hope that helps, Thanks, Dan Liew. On 22 November 2013 02:33, 李永超 <lyc364 at gmail.com> wrote: > Hi, > How can I obtain CFGs using llvm-gcc? After reading the documentation at > LLVM`s homepage, I didn`t found anything related to this. > Thanks.
2013 Oct 12
1
[LLVMdev] Strange error when building dragonegg 2.9
Hi, I tried to build dragonegg 2.9 but encountered following error at the very beginning of the building process: qingjinlyc at qingjinlyc:~/IDEs/dragonegg-2.9$ GCC=../build-gcc/bin/gcc-4.5 makeCompiling utils/TargetInfo.cpp g++: error: directory": No such file or directory make: *** [TargetInfo.o] Error 1 qingjinlyc at qingjinlyc:~/IDEs/dragonegg-2.9$ Does anyone have any idea about this?
2013 Nov 22
0
[LLVMdev] How to obtain CFG using llvm-gcc?
Hi, How can I obtain CFGs using llvm-gcc? After reading the documentation at LLVM`s homepage, I didn`t found anything related to this. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131122/eeca9247/attachment.html>
2013 Oct 10
2
[LLVMdev] llvm-ld file not recognized: File format not recognized
Hi, When using llvm-ld to link .bc files(compiled with llvm-gcc with option --emit-llvm), I went into error like: file not recognized: File format not recognized. I was confused because llvm-ld is the LLVM linker to link llvm bitcode files together, then why this error occurred? I am using llvm 2.9 and the corresponding binary version of llvm-gcc. It will be appreciated if anyone of you can