clang: add -emit-llvm example (#2499)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
19f7958076
commit
5f67df146b
@@ -13,3 +13,7 @@
|
|||||||
- Include libraries located at a different path than the source file:
|
- 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}}`
|
`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}}`
|
||||||
|
Reference in New Issue
Block a user