An open API service indexing awesome lists of open source software.

https://github.com/tzhenghao/llvm-tutorial

Code for LLVM's official tutorial
https://github.com/tzhenghao/llvm-tutorial

compiler cpp llvm

Last synced: 5 months ago
JSON representation

Code for LLVM's official tutorial

Awesome Lists containing this project

README

          

# llvm-tutorial

Code for LLVM's official tutorial

## Instructions

### CMake (recommended)

1. Navigate to the `build` directory: `cd build`
2. Configure and generate build files with CMake (via Ninja): `cmake .. -G Ninja`
3. Build with Ninja: `ninja`

### Manual (with clang)

```cpp
clang++ -g -O3 main.cpp `llvm-config-16 --cxxflags --ldflags --system-libs --libs core` -o toy
```