Forrest logo
back to context overview

clang

List of commands for clang:

  • clang:tldr:2573d clang: Compile a source code file into an executable binary.
    $ clang ${input_source-c} -o ${output_executable}
    try on your machine
    explain this command
  • clang:tldr:6ed62 clang: 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}
    try on your machine
    explain this command
  • clang:tldr:7002f clang: Compile source code into LLVM Intermediate Representation (IR).
    $ clang -S -emit-llvm ${file-c} -o ${file-ll}
    try on your machine
    explain this command
  • clang:tldr:d3c87 clang: Activate output of all errors and warnings.
    $ clang ${input_source-c} -Wall -o ${output_executable}
    try on your machine
    explain this command
  • clang:tldr:d59b3 clang: Compile source code without linking.
    $ clang -c ${input_source-c}
    try on your machine
    explain this command
back to context overview