VolkanaDEV

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

PageWhat it covers
ISA29 assigned slots, frozen numbers, reserved ones.
SemanticsHow each category of op behaves on the stack and on the grid.
ConformanceHow a new executor is admitted, and the per-op test suite.
DeterminismWhy the same artifact gives the same bytes on every machine.
ArtifactsThe text format, the header, and how to read a .bc by eye.
GlossaryBloodCode vocabulary.