diff --git a/pages/common/clang.md b/pages/common/clang.md index e91ea719af..f2bf73f004 100644 --- a/pages/common/clang.md +++ b/pages/common/clang.md @@ -13,3 +13,7 @@ - Include libraries located at a different path than the source file: `clang {{input_source.c}} -o {{output_executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}` + +- Compile source code into LLVM Intermediate Representation (IR): + +`clang -S -emit-llvm {{file.c}} -o {{file.ll}}`