-
Notifications
You must be signed in to change notification settings - Fork 0
LLM Quick Reference
Simon B.Stirling edited this page Mar 2, 2026
·
1 revision
I use this page as a compact prompt-time reference for L0 generation and analysis.
ver 1
types { t0=i64 }
consts { }
extern { }
globals { }
fns {
fn f0 (t0,t0)->t0 {
b0:
v0 = arg 0 : t0
v1 = arg 1 : t0
v2 = add.wrap v0 v1 : t0
ret v2
}
}
- types:
tN - functions:
fN - blocks:
bN - values:
vN
- value op:
vN = OP ... : tM - non-value op:
OP ... - terminator:
br bK|cbr vC bT bF|ret|ret vN
- values:
arg,const,add.wrap,add.trap,sub.wrap,sub.trap,mul.wrap,mul.trap,and,or,xor,shl,shr,icmp.eq,call,alloca,ld,gep,malloc - non-values:
st,free,write,exit,trace
./bin/l0c verify <module.l0>
./bin/l0c build <module.l0> <out.l0img>
./bin/l0c run <out.l0img> [u64 args...]./bin/l0c build <module.l0> /tmp/x.img --debug-map /tmp/x.map --trace-schema /tmp/x.schema
./bin/l0c run /tmp/x.img 123 >/tmp/x.out 2>/tmp/x.trace
./bin/l0c tracecat /tmp/x.trace
./bin/l0c tracejoin /tmp/x.trace /tmp/x.map- parser/verifier/decode failure class:
error: invalid module shape or non-canonical input - corrupt image class:
error: invalid or corrupt L0IMG - run arg failure class:
error: invalid run argument (expected unsigned decimal)
Full contract references:
docs/IMPLEMENTABLE_SPEC.mddocs/ERROR_MODEL.mddocs/WORKFLOWS.md
- How-To-Write-L0
- Language-Reference
- Instruction-Set
- CLI-and-Compiler-Spec
- Implementable-Spec
- Command-Reference
- Examples-Catalog
- LLM-Quick-Reference
- Opcode-Examples
- LLM-Doc-Index