1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages.de/common/clang.md
Managor 9a42cc59fb
pages*/common/*: add option placeholders to translations part 1 (#15896)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-14 12:48:08 +05:30

974 B

clang

Compiler für C, C++ und Objective-C Quelldateien. Kann als Ersatz für GCC genutzt werden. Weitere Informationen: https://clang.llvm.org/docs/ClangCommandLineReference.html.

  • Kompiliere eine Quelldatei in eine ausführbare Binärdatei:

clang {{pfad/zu/quelldatei.c}} {{[-o|--output]}} {{pfad/zu/binärdatei}}

  • Zeige geläufige Fehler und Warnungen an:

clang {{pfad/zu/quelldatei.c}} -Wall {{[-o|--output]}} {{pfad/zu/binärdatei}}

  • Binde Bibliotheken, die sich an einem anderen Pfad als die Quelldatei befinden, ein:

clang {{pfad/zu/quelldatei.c}} {{[-o|--output]}} {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek}} -l{{bibliotheks_name}}

  • Kompiliere eine Quelldatei zu LLVM Intermediate Representation (IR):

clang {{[-S|--assemble]}} -emit-llvm {{pfad/zu/quelldatei.c}} {{[-o|--output]}} {{pfad/zu/ir_datei.ll}}

  • Kompiliere eine Quelldatei, ohne zu Linken:

clang {{[-c|--compile]}} {{pfad/zu/quelldatei.c}}