+ 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.

16th Aug 2018, 11:36 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
3 Respostas
17th Aug 2018, 8:22 AM
Roman Khristoforov
Roman Khristoforov - avatar
+ 1
Roman Khristoforov Thank you very much. I just tried the external assembler setting and it worked.
18th Aug 2018, 8:04 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
I don't know, but I am learning c++ so I want to know to
17th Aug 2018, 3:51 PM
william not known
william not known - avatar