BloodCode Documentation
The frozen instruction set Sanguis compiles to. On these pages, red is the machine and blue is the notation.
What BloodCode is
BloodCode is what runs. Sanguis is the notation you write; BloodCode is the machine underneath it. Every Sanguis program compiles to BloodCode, and every executor (the graphics card, the just-in-time engine, the self-compiling compiler) runs the same BloodCode and produces the same bytes.
Sections
| Page | What it covers |
|---|---|
| ISA | 29 assigned slots, frozen numbers, reserved ones. |
| Semantics | How each category of op behaves on the stack and on the grid. |
| Conformance | How a new executor is admitted, and the per-op test suite. |
| Determinism | Why the same artifact gives the same bytes on every machine. |
| Artifacts | The text format, the header, and how to read a .bc by eye. |
| Glossary | BloodCode vocabulary. |