~rabbits/orca-toy

ref: 135eca6a0229afd2a49cff4a7cd2935378b4e1aa orca-toy/build.sh -rwxr-xr-x 493 bytes
135eca6aneauoire Replaced the pointer array with a switch case 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 -O2 -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