similar to: [LLVMdev] Compilation of library

Displaying 20 results from an estimated 300000 matches similar to: "[LLVMdev] Compilation of library"

2009 Sep 01
4
[LLVMdev] accessing a bitcode library exported from C++ using the JIT
----- Original Message ---- > From: Eli Friedman <eli.friedman at gmail.com> > To: Samuel Crow <samuraileumas at yahoo.com> > Cc: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> > Sent: Monday, August 31, 2009 3:49:01 PM > Subject: Re: [LLVMdev] accessing a bitcode library exported from C++ using the JIT > > On Mon, Aug 31, 2009 at 12:17 PM, Samuel
2009 Aug 31
0
[LLVMdev] accessing a bitcode library exported from C++ using the JIT
On Mon, Aug 31, 2009 at 12:17 PM, Samuel Crow<samuraileumas at yahoo.com> wrote: > Hello, > > My partner and I am making a small app needs to access a C++ library from the LLVM 2.5 JIT.  We've made sure that there are no classes and have put 'extern "c"' in front of the functions we need to access.  In order to make this work, we seem to need to have a bitcode
2009 Aug 31
2
[LLVMdev] accessing a bitcode library exported from C++ using the JIT
Hello, My partner and I am making a small app needs to access a C++ library from the LLVM 2.5 JIT. We've made sure that there are no classes and have put 'extern "c"' in front of the functions we need to access. In order to make this work, we seem to need to have a bitcode version of libstdc++ so we can avoid writing our own implementations of std::string and std::vector.
2009 Sep 01
0
[LLVMdev] accessing a bitcode library exported from C++ using the JIT
On Tue, Sep 1, 2009 at 4:53 AM, Samuel Crow<samuraileumas at yahoo.com> wrote: > We're using the LLVM Value * class functions to box and unbox values and functions for our stack.  The stack needs to be able to take indexing without changing the stack pointer so we're using a std::vector for that.  The std::string section would be a lot easier to replace than the two I just
2009 Jan 23
0
[LLVMdev] Using LLVM as cross-compiler to C
Thanks John and Bill for your feedback. A bit more detail below... Thanks again, Best Regards, Dave At 09:03 PM 1/21/2009, John Criswell wrote: >Bill Wendling wrote: > > On Wed, Jan 21, 2009 at 3:40 PM, Dave Nadler <Dave.Nadler at nadler.com> > wrote: > > > >> Hi All - Newbie warning... I am developing for a target that does not have > >> a functioning
2009 Jan 22
2
[LLVMdev] Using LLVM as cross-compiler to C
Bill Wendling wrote: > On Wed, Jan 21, 2009 at 3:40 PM, Dave Nadler <Dave.Nadler at nadler.com> wrote: > >> Hi All - Newbie warning... I am developing for a target that does not have >> a functioning C++ environment, and need to use C++. It was suggested that I >> could use LLVM to compile to C (using llc -march=c), then run the resulting >> C-code through
2012 Jun 20
0
[LLVMdev] RFC: How can AddressSanitizer, ThreadSanitizer, and similar runtime libraries leverage shared library code?
On Tue, Jun 19, 2012 at 10:59 PM, Chandler Carruth <chandlerc at google.com>wrote: > On Tue, Jun 19, 2012 at 10:46 PM, Kostya Serebryany <kcc at google.com>wrote: > >> >> >> On Wed, Jun 20, 2012 at 9:39 AM, Chandler Carruth <chandlerc at google.com>wrote: >> >>> On Tue, Jun 19, 2012 at 9:07 PM, Kostya Serebryany <kcc at
2008 Jan 01
0
[LLVMdev] Building LLVM as bitcode libraries + my projects
Hi all, Is it possible to build the LLVM tools and libraries as bitcode files? I have managed to compile some software to bitcode files by creating a wrapper around llvm-gcc, llvm-g++ and llvm-ld and some hacking. Using binfmt in Linux you can even execute them directly on the command line. The object format becomes transparent. I tried to compile LLVM itself, but things go wrong with the
2008 Jul 24
0
[LLVMdev] weird function
Thank Duncan, what I actually want, is to implement a simple processor simulator, which can execute LLVM bitcode. So it must deal with the virtual LLVM instruction set. As I compiled a C or C++ program using llvm-gcc or llvm-g++, I have a bitcode file. If a C++ library is used, some functions will be declared inside it, but not defined there (like the @_Znwj). Is it possible to create LLVM IR
2012 Jun 21
2
[LLVMdev] RFC: How can AddressSanitizer, ThreadSanitizer, and similar runtime libraries leverage shared library code?
Hi, Yes, stlport was a pain to deploy and maintain + it calls normal operator new/delete (there is no way to put them into a separate namespace). Note that in some codebases we build asan/tsan runtimes from source. How the build process will look with that object file mangling? How easy it is to integrate it into a custom build process? Soon I will start integrating tsan into Go language. For
2012 May 22
0
[LLVMdev] How to get llvm bitcode executed
Hi Xialong, > I have a program that uses C++ STL a lot. To have the source code for > STL functions, I undefined "_GLIBCXX_EXTERN_TEMPLATE" in > c++config.h. In spite of this, after compilation (via clang) and > linking (via llvm-ld), the resulting bitcode contains a few declared > functions (with no definitions). > > My question is: In the scenario where some
2012 May 23
0
[LLVMdev] How to get llvm bitcode executed
Hi Xiaolong, > As Duncan described, "lli -load=libstdc++.dylib ..." works. I, > however, encounted an "Illegal instruction" message, while I was > trying to interpret a large program. are you using the interpreter or the JIT? So, does lli have a debug switch > for dumping out the details for errors? > > Using llc is not that simple, and I have not gotten
2008 Jul 24
2
[LLVMdev] weird function
Hi, > thank for your answer. Is there any document/tutorial about linking > bytecode file with libstdc++ avaiable ? first you need to compile the bitcode to assembler using llc. For example: llc bitcode.bc This produces bitcode.s. Turn this into a executable using: llvm-g++ -o bitcode bitcode.s or g++ -o bitcode bitcode.s It doesn't matter which g++ you use here. Using g++
2009 Sep 29
4
[LLVMdev] LLVM: C++ -> C
I've read that LLVM can convert from C++ to C code. So I've used it in such a way: I'm Windows-user so I used MinGW. I employed this file as the test: llvm-hello.cpp: #include <iostream> int main(int argc, char* argv[]) { system("pause"); return 0; } result of "llvm-g++ C:\llvm_hello.cpp -o C:\llvm_hellopp.exe" worked just fine. as a result of
2012 May 22
2
[LLVMdev] How to get llvm bitcode executed
Thanks Duncan and Ashok, As Duncan described, "lli -load=libstdc++.dylib ..." works. I, however, encounted an "Illegal instruction" message, while I was trying to interpret a large program. So, does lli have a debug switch for dumping out the details for errors? Using llc is not that simple, and I have not gotten through the compilation process. For instance, "llc -o
2012 Jun 20
2
[LLVMdev] RFC: How can AddressSanitizer, ThreadSanitizer, and similar runtime libraries leverage shared library code?
On Tue, Jun 19, 2012 at 10:46 PM, Kostya Serebryany <kcc at google.com> wrote: > > > On Wed, Jun 20, 2012 at 9:39 AM, Chandler Carruth <chandlerc at google.com>wrote: > >> On Tue, Jun 19, 2012 at 9:07 PM, Kostya Serebryany <kcc at google.com>wrote: >> >>> +dvyukov >>> >>> On Wed, Jun 20, 2012 at 7:12 AM, Chandler Carruth
2009 Jan 22
0
[LLVMdev] Using LLVM as cross-compiler to C
On Wed, Jan 21, 2009 at 3:40 PM, Dave Nadler <Dave.Nadler at nadler.com> wrote: > Hi All - Newbie warning... I am developing for a target that does not have > a functioning C++ environment, and need to use C++. It was suggested that I > could use LLVM to compile to C (using llc -march=c), then run the resulting > C-code through the working C-cross-compilation tools. So, some
2010 Sep 27
1
[LLVMdev] glibc compilation
Hi All, Did anyone try to compile glibc with llvm-gcc or clang? I tried to configure glibc with CC=llvm-gcc and it failed with this message: ... checking for a BSD-compatible install... /usr/bin//install -c checking whether ln -s works... yes checking for gcc... llvm-gcc checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See
2009 Dec 09
2
[LLVMdev] How to run vmjc created .bc files?
Hi, I've managed to compile it the class down to a native executable. However, the executable runs for a while then spits out: terminate called without an active exception Aborted and dies. The program never gets to the normal output. Here is a stack trace from gdb: #0 0xf3f6baa6 in raise () from /lib/libc.so.6 #1 0xf3f6d3a8 in abort () from /lib/libc.so.6 #2 0xf41918f8 in
2010 Jun 26
2
[LLVMdev] libLLVMgold.so: could not load plugin library
On 6/25/2010 2:37 PM, Rafael Espindola wrote: > The linker (gold) requires you to pass -plugin to it. I am using the command: llvm-gcc a.c -emit-llvm -use-gold-plugin and here is the output: $LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld: error: $LLVMGCCPREFIX/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so: could not load plugin library