Hello friends working on LLVM,
I am a beginner to LLVM. I tried to get C code from LLVM bitcode using
'llc -march=c'. But it seems to me that it doesn't work if the source
program is a C++ program. Am I right? I have attatched the source
program and the result of compiling the C code of it with GCC4.3.3.
By the way, has LLVM's C code backend been tested on benchmarks like
spec? Sorry if I missed the answers on websites.
Hello friends working on LLVM,
I am a beginner to LLVM. I tried to get C code from LLVM bitcode using
'llc -march=c'. But it seems to me that it doesn't work if the source
program is a C++ program. Am I right?
If you use functions from some library on your C++ code (the C++
Standard Library, for example) calls to those functions are still
present on the generated C code. This means that you must provide the
referenced library on your compile command.