~rabbits/orca-toy

ref: 41ed999a16251dab16b39cd936fc46abfd989eee orca-toy/build.sh -rwxr-xr-x 493 bytes
41ed999aneauoire Fixed a few things 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

clang-format -i toy.c

rm -f ./toy

# GNU/Linux
cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o toy toy.c

# GNU/Linux
# cc toy.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -o toy

# Plan9
# pcc toy.c -o toy

# ./toy abflm.orca > abflm-result.orca
# diff abflm-result.orca abflm-expected.orca

time ./toy ~/Git/orca-examples/benchmarks/logic.orca