<div dir="ltr"><div><br></div>Hi,<div><br></div><div>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:</div><div><ol><li>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.</li><li>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?</li></ol><div>Thanks in advance.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div></div>