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

Example

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.i (or hello.ii for 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.

Note:

  • Specifying -c means that the compilation process stops after the compilation step, and does not do any linking.
  • Specifying -S means that the compilation process stops after the disassembly step, and does not create an object file.
Non-ConfidentialPDF file icon PDF versionDUI0774J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.