Displaying 2 results from an estimated 2 matches for "llvm_hellocpptoc".
2009 Sep 29
4
[LLVMdev] LLVM: C++ -> C
...t 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.c -o C:\llvm_helloCppToC.exe"
I've got:
"C:\llvm_helloCppToC.c: In function 'main':
C:\llvm_helloCppToC.c:180: warning:return type of 'main' is not 'int...
2009 Sep 29
0
[LLVMdev] LLVM: C++ -> C
...ot;);
> 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.c -o C:\llvm_helloCppToC.exe"
> I've got:
> "C:\llvm_helloCppToC.c: In function 'main':
> C:\llvm_helloCppToC.c:180: warning:return type of...