similar to: [LLVMdev] How to call C++ code from LLVM

Displaying 20 results from an estimated 100000 matches similar to: "[LLVMdev] How to call C++ code from LLVM"

2009 Jun 18
3
[LLVMdev] How to call C++ code from LLVM
Hi, How can I call C++ libraries (LLVM & Qt for example) from a language that's implemented on top of LLVM? Thanks, Jules -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090619/4621508b/attachment.html>
2009 Jun 19
0
[LLVMdev] How to call C++ code from LLVM
On Thu, Jun 18, 2009 at 3:57 PM, Jules Jacobs<julesjacobs at gmail.com> wrote: > How can I call C++ libraries (LLVM & Qt for example) from a language that's > implemented on top of LLVM? You can call them the same way a C++ file compiled with llvm-g++ would call them. Essentially, it's complicated enough that you probably don't want to do it for any interface of
2009 Jun 20
1
[LLVMdev] How to call C++ code from LLVM
On Sat, Jun 20, 2009 at 07:17:50AM -0700, pablogreen wrote: > Normally in C++ I do this: > g++ -fPIC -c mylib.c > g++ -shared -o libmylib.so mylib.o Try compiling with GCC in C mode because C++ mangles the names (e.g. to support overloading). -- Felipe.
2009 Jun 20
0
[LLVMdev] How to call C++ code from LLVM
Sorry could you help me? I have problem with using LLVM and some code in C (.so file) I want to use (simply example): mylib.c: #include <stdio.h> void printString(char *str) { printf("%s", str); } mylib.h: #ifndef MY_LIB_HEADER #define MY_LIB_HEADER void printString(char* X); #endif /////////////////////////////////////// Normally in C++ I do this: g++ -fPIC -c mylib.c
2002 Jul 02
3
interfacing R and c++
Hi, I'm trying to write a gui program that accesses some R code I've written. The gui is written in c++ and includes qt libraries and vigra libraries (for image manipulation). Unfortunately I've been getting dependencies due to constants getting redefined within the R.h/R_ext library and Rinternals.h. I tried rewriting the R interface but the problem keeps propagating. I've been
2002 Jul 02
3
interfacing R and c++
Hi, I'm trying to write a gui program that accesses some R code I've written. The gui is written in c++ and includes qt libraries and vigra libraries (for image manipulation). Unfortunately I've been getting dependencies due to constants getting redefined within the R.h/R_ext library and Rinternals.h. I tried rewriting the R interface but the problem keeps propagating. I've been
2008 Jun 18
2
embedding R in c++ (Qt) application
Hi R-Developers, I'm working on running statistical analyses with embedded R from a Qt-GUI-application (C++). I've been able to link with R libraries, but I'm having a hard time to understand the C-coding examples. I'm a C++, not a C programmer (never used malloc before), and many of the R-specific functions/keywords/macros (for instance (UN)PROTECT, SETCAR, all the
2013 Oct 21
4
About integrating R inside a C++ software
Hi, We are a company developing a software mainly in C++. We want to integrate R inside our software in order to use mainly the engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, multivariate, ...) and probably later the chart solution. Of course we don''t want to temporary write the data to some csv files and then do an ugly system() call :
2013 Oct 21
4
About integrating R inside a C++ software
Hi, We are a company developing a software mainly in C++. We want to integrate R inside our software in order to use mainly the engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, multivariate, ...) and probably later the chart solution. Of course we don''t want to temporary write the data to some csv files and then do an ugly system() call :
2011 Nov 07
0
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
oops... so how can unwind stack up to invoke call? Is there an alternative to establish a custom exception handling? 2011/11/7 Duncan Sands <baldrick at free.fr> > >> Hi Semion, the unwind instruction has been removed from LLVM. Also, the >> JIT >> and code generators never supported it: it never unwound the stack, it >> just >> resulted in a nasty crash.
2011 Dec 13
1
[LLVMdev] Issues in converting C++ code to C using llvm and llc
Hello All, I came to know from a friend that using LLVM insfrastucture one can convert C++ programs to C. I needed this for my cross-compiler because we don't have support for C++ compilation in our cross-compiler. I tried following: http://llvm.org/docs/FAQ.html#translatecxx While I can generate .bc its llc which gives error. Then I also tried "clang" as oppose to llvm-g++. Here
2011 Nov 06
3
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
Hi! I have a little problem using LLVM and will be happy to get a solution. I need to handle in C++ code an uncaught unwind instruction while calling JIT (now I get segfault). I mean something like nonexistent ExecutionEngine::invokeFunction instead of callFunction. Setting llvm::JITExceptionHandling to true and enclosing the JIT-call within try/catch block does not help here, because there is no
2008 Apr 24
0
[LLVMdev] OCaml Kaleidoscope tutorial links to the C++ tutorial
The link to the next chapter in the navigation list at the top of this page of the OCaml Kaleidoscope tutorial goes to the C++ version: http://llvm.org/docs/tutorial/OCamlLangImpl3.html. The link to chapter 8 in the first chapter is broken: http://llvm.org/docs/tutorial/OCamlLangImpl1.html#intro. It links to the unvavailable page http://llvm.org/docs/tutorial/OCamlLangImpl8.html. I think it
2014 Aug 06
2
[LLVMdev] LLVM as a shared library
On 5 Aug 2014, at 21:17, Filip Pizlo <fpizlo at apple.com> wrote: > - Engage with non-WebKit embedders that currently use the C++ API to figure out what it would take to get them to switch to the C API. I maintain a reasonable amount of out-of-tree code that embeds LLVM in various things, including a couple of language front ends, an out-of-tree back end, and some tools for interfacing
2007 Jul 29
4
Call R program from C++ code
Hi All: I'm developing an application program using C++. From my C++ code, I would call some R program I have written. I' wondering if R provide some compiler that can compile R program into executable program. I searched R-help, there are a lot of posts talking about writing C++ code in R program, but few about calling R from C++. I might be wrong that R
2014 Dec 30
2
call r function in c++ application
hi, Am a software developer having 4 yr experience in c++.I want to integrate R environment in my c++ application,please help me to do so. thanks&regards blesson [[alternative HTML version deleted]]
2012 Mar 15
3
[LLVMdev] Using JIT code to code a program to call C++
My project has a C++ library that I want to allow the user to use via some programming language to be JIT'd to call functions in said library. For the sake of simplicity, assume the library has classes like: class item { public: item(); item( int ); ~item(); // ... }; class item_iterator { public: virtual ~item_iterator(); virtual bool next( item *result ) = 0; };
2004 Sep 30
2
OT: Kphone installation problem
Hello, I know that my Kphone question may be a bit off topic, but I have been busy with this again and again for about one month now, sent three mails to kphone@wirlab.net (the contact address mentioned on http://www.wirlab.net/kphone/index.html), asked for a solution in a german ip phone forum and tryed many things by myself. I try to compile KPhone 4.0.3 (tryed CVS Version as well) but
2007 Sep 12
2
[LLVMdev] Methodology for interfacing LLVM JITed code with C++
Hi all, I'm currently working on a C-like scripting language compiler backend designed to emit LLVM code. This code will be loaded into LLVM's JIT at runtime and will make calls into a C++ library (including calling virtual methods on C++ objects). The translation from our AST to an llvm::Module is fairly straightforward, the difficulty, however, comes in generating the appropriate
2006 Nov 06
2
[LLVMdev] LLVM code emittion and C++ compiler compatibily
Hello! I have a question how about JIT-ed code and the C++ compiler compatibily. My project (www.baadengine.org) will use llvm and we will provide integration of JIT-ed code directly into C++ code. This means that C++ code can call JIT code just like any other code and JIT-ed code can call C++ code. We will compile to your bytecode from our BSF format. The question is if it is possible this