Mercurial > hg > Members > kono > compiler-examples
view README.md @ 27:c4e2ca100ab9 default tip
llvm worked
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Oct 2024 17:10:11 +0900 |
parents | e84ea6c0d359 |
children |
line wrap: on
line source
# How to build small compiler examples # on macOS ``` brew install cmake export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) cmake -DCMAKE_MAKE_PROGRAM=make ``` # run on lldb ``` lldb ./s-llvm (lldb) b main (lldb) process launch -i s-input.txt ```