search for: translatecxx

Displaying 4 results from an estimated 4 matches for "translatecxx".

Did you mean: translatec++
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 is what I want to accomplish: I have a simple c++ prog which I want to convert to c using llvm ----------------------------------------------------------------- For example -------...
2009 Sep 29
0
[LLVMdev] LLVM: C++ -> C
On Sep 29, 2009, at 9:37 AM, dilas dilas wrote: > I've read that LLVM can convert from C++ to C code. It does, but it does not supply a C++ library. You'll need to do that. > 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
2010 Dec 29
1
[LLVMdev] Exception handling
Hi all, I am trying to convert my C++ code to C code. I got the steps from FAQ from the link below, http://llvm.org/docs/FAQ.html#translatecxx But if my code throws an exception, it aborted with a message like below, terminate called after throwing an instance of 'int' I tried -enable-correct-eh-support parameter but no different. Does anybody know how to make exception handling work with the C++ to C conversion? Thanks. Shin
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