+ 4
[SOLVED] Generating assembly file from C++ source file with LLVM Clang
I wish to generate an assembly file (.s) of a C++ source file in Clang. I can do so in GCC using g++ -S -save-temps <name of file>, but these flags only generate the preprocessor file in Clang. How can I generate the assembly file ? I also tried using llvm-objdump -d <file name>, but it didn't work for me.
3 Answers
+ 1
May be it will help you
https://stackoverflow.com/questions/24603910/clang-interleaved-source-and-assembly
+ 1
Roman Khristoforov Thank you very much. I just tried the external assembler setting and it worked.
0
I don't know, but I am learning c++ so I want to know to