Clang: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
A compiler. | |||
= Tutorials = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| learn compilers, LLVM edition || https://lowlevelbits.org/how-to-learn-compilers-llvm-edition/ | |||
|- | |||
|} | |||
</blockquote><!-- Tutorials --> | |||
= Usage = | = Usage = | ||
<blockquote> | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
## compile c++11 program | ## compile c++11 program | ||
Line 7: | Line 19: | ||
clang example.c -o example_program | clang example.c -o example_program | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Usage --> | |||
= Debugger = | = Debugger = |
Latest revision as of 00:58, 9 February 2022
A compiler.
Tutorials
learn compilers, LLVM edition https://lowlevelbits.org/how-to-learn-compilers-llvm-edition/
Usage
## compile c++11 program clang++ -std=c++11 -stdlib=libc++ example.cpp -o example_program ## compile c program clang example.c -o example_program
Debugger
See lldb.
lldb python -- -c 'print("hi")'