3 examples for clang
# Check for correctness clang -fsyntax-only source.c # Emit LLVM Intermediate Representation clang -S -emit-llvm source.c -o output.ll # Emit LLVM IR bitcode clang -c -emit-llvm source.c -o output.bc # Compile to native machine code clang -S source.c -o assembly.s
# Compiles program.c into program, with more warnings than usual, and disabling extensions clang -Werror -Wall -Wextra -pedantic program.c -o program