File tree Expand file tree Collapse file tree 4 files changed +485
-11
lines changed
Expand file tree Collapse file tree 4 files changed +485
-11
lines changed Original file line number Diff line number Diff line change 9797 ${{ matrix.cc }} -std=c11 -O2 -Isrc tests/test_harness_builder.c src/ctx.c -o jit_tests_builder
9898 ./jit_tests_builder
9999
100+ - name : Build and run minilang example
101+ run : |
102+ ${{ matrix.cc }} -std=c11 -O2 -Isrc examples/minilang.c src/ctx.c -o minilang_example
103+ python3 - <<'PY'
104+ import subprocess
105+ subprocess.run(["./minilang_example"], timeout=5, check=True)
106+ PY
107+
100108 - name : Build and run SIMD example
101109 run : |
102110 ${{ matrix.cc }} -std=c11 -O2 -Isrc examples/simd.c src/ctx.c -o simd_example
Original file line number Diff line number Diff line change 22
33Small programs that showcase ` cj ` :
44
5- - `simple.c` – minimal
6- program(nop &ret)
7- .- `add.c` – adds a constant to the first argument and returns it;
8- demonstrates register operands and constants.- ` fibonacci.c ` – full control -
9- flow example(labels, branches, loops) emitted with the low-level API.
10- - ` hl_fibonacci.c ` – fibonacci again, but built entirely with the builder helpers.
11- - ` simd.c ` – x86 and arm simd vector addition loops, exercising memory operands and floating-point registers.
5+ - ` simple.c ` : minimal program(nop & ret).
6+ - ` add.c ` : adds a constant to the first argument and returns it; demonstrates
7+ register operands and constants.
8+ - ` fibonacci.c ` : full control-flow example(labels, branches, loops) emitted
9+ with the low-level API.
10+ - ` hl_fibonacci.c ` – fibonacci again, but built entirely with the builder
11+ helpers.
12+ - ` simd.c ` – x86 and arm simd vector addition loops, exercising memory operands
13+ and floating-point registers.
14+ - ` minilang.c ` – a minimal Lisp (has addition, subtraction, functions).
1215
1316## building
1417
You can’t perform that action at this time.
0 commit comments