Displaying 2 results from an estimated 2 matches for "llvm_hello".
Did you mean:
llvm_hellopp
2009 Sep 29
4
[LLVMdev] LLVM: C++ -> C
...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 "llvm-g++ -O3 -emit-llvm C:\llvm_hello.cpp -c -o C:\llvm_hellopp.bc" and
"llc -march=c C:\llvm_hellopp.bc -o C:\llvm_helloCppToC.c" I obtained this charming stuff:
http://codepaste.ru/2409/
And after "llvm-...
2009 Sep 29
0
[LLVMdev] LLVM: C++ -> C
...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 "llvm-g++ -O3 -emit-llvm C:\llvm_hello.cpp -c -o C:
> \llvm_hellopp.bc" and
> "llc -march=c C:\llvm_hellopp.bc -o C:\llvm_helloCppToC.c" I
> obtained this charming stuff:
> http://c...