Getting Started
Prerequisites:
- Rust toolchain (stable)
- LLVM 17 installed and discoverable by the
inkwellcrate- On some systems you may need to set
LLVM_SYS_170_PREFIXto your LLVM install prefix
- On some systems you may need to set
Build and run from the Pie crate directory:
cd pie/pie
cargo run --release -- ../examples/working_example.pie
You should see output similar to:
- Executing program...
- Program finished with exit code: 0
Run another example (HTTP server):
cargo run --release -- ../examples/http_test.pie
Then open http://localhost:8080/ in your browser.
CLI usage:
pie <file.pie>
Optimization:
- Pass
-O,-O1,-O2, or-O3as an extra argument to select JIT optimization level.