Instructs the compiler to generate intermediate assembly files from the specified C/C++ file.
It is similar to disassembling object code that has been compiled from C/C++.
armclang --target=aarch64-arm-none-eabi -save-temps -c hello.c
Executing this command outputs the following files, listed in the order that they are created:
hello.iifor C++): the C or C++ file after pre-processing.
hello.bc: the llvm-ir bitcode file.
hello.s: the assembly file.
hello.o: the output object file.
-cmeans that the compilation process will stop after the compilation step, and not do any linking.
-Smeans that the compilation process will stop after the disassembly step, and not create an object file.