[llvm-dev] Compiling the code generated by LLVM C++ backend
Dipanjan Das via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 9 02:43:28 PDT 2015
Hi,
I am working with LLVM 2.9. So far I have used "llc -march=c" and "llc
-march=cpp" respectively to generate C and C++ source code from LLVM
IR/BitCode. My questions follow:
1. I can see that there is a significant difference between the code
generated by C and C++ backends. Former one generates code to be compiled
by gcc to generate a native executable, while the later one is targeted to
generated LLVM IR itself. Surprisingly, both the diametrically opposite
functionalities have been put together in the same utility called ''llc'. I
wonder if there is any official doc available online to point out the
striking difference.
2. This question is simpler even: How can I make use of the C++ code
generated by LLVM C++ backend? In other words, can it be compiled to a
standalone, native binary that can be used to write out corresponding LLVM
IR? If so, what will the compiler and linker switches be?
Thanks in advance.
--
Thanks & Regards,
Dipanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150909/d5a83aa7/attachment.html>
More information about the llvm-dev
mailing list