Displaying 2 results from an estimated 2 matches for "llvm_hellopp".
2009 Sep 29
4
[LLVMdev] LLVM: C++ -> C
...t 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-gcc C:\llvm_helloCppToC...
2009 Sep 29
0
[LLVMdev] LLVM: C++ -> C
...9;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/
>...