You can also use -S -emit-llvm
to generate LLVM IR assembly files and just -emit-llvm
for LLVM bitcode object files. These are the language-independent code representations that clang and other LLVM front-ends generate and pass to LLVM to compile into an executable.
Clang's different stages of processing
Вопрос
Similar to GCC, clang supports stopping at different stages when processing C/C++. For example, passing a -E
flag causes it to stop after the pre-processor and -c
stops before linking.
So far, I am aware of,
-E
: pre-processing-fsyntax-only
: syntax checking-S
: assembly-c
: object code
Am I missing any stopping points between those, or is that it?
Решение
Не связан с StackOverflow