|Home > armclang Command-line Options > -save-temps|
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, that are listed in the order 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 stops after the compilation step, and does not do any linking.
-Smeans that the compilation process stops after the disassembly step, and does not create an object file.