Mercurial > hg > Members > kono > compiler-examples
annotate 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 |
rev | line source |
---|---|
25 | 1 # How to build small compiler examples |
2 | |
3 # on macOS | |
4 | |
5 ``` | |
6 brew install cmake | |
7 export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) | |
8 cmake -DCMAKE_MAKE_PROGRAM=make | |
9 ``` | |
10 | |
27 | 11 # run on lldb |
12 | |
13 ``` | |
14 lldb ./s-llvm | |
15 (lldb) b main | |
16 (lldb) process launch -i s-input.txt | |
17 ``` | |
18 | |
19 |