spec: Phase 0 spec gate (P0-1, P0-2, P0-3)
- text AIR format 0: grammar (reference/air-text.ebnf) and module, block, SSA, type and canonical-form rules (spec 07 §8) - instruction contracts for format 0 (new spec 07a) - traps: stable T0xxx codes and trap records (spec 01 §6) - integer edge cases and explicit casts (spec 02 §2.1) - fixed verifier resource limits (spec 08 §7) - target description with pointer_bits (spec 09 §9) - new codes E0001-E0006, E1003, T0001-T0007 - resolves Q-001, Q-003..Q-008, Q-018; Q-002 resolved for format 0
This commit is contained in:
1 parent
11ce6cb38c
commit
41b764ccfd
13 files changed
+425
-18
No files matched your search
@@ -70,3 +70,15 @@ Signal and interrupt handlers use restricted capabilities/effects. Allocation, o
|
||||
The initial native backend should lower AIR to LLVM IR.
|
||||
|
||||
A custom native backend is deferred until AIR and verifier semantics stabilize.
|
||||
|
||||
## 9. Target description
|
||||
|
||||
Every execution, interpreted or native, runs against an explicit target description. Target-dependent semantics come only from it.
|
||||
|
||||
Format version 0 defines one field:
|
||||
|
||||
| Field | Meaning |
|
||||
|---|---|
|
||||
| `pointer_bits` | width of `usize`/`isize` in bits: 32 or 64 |
|
||||
|
||||
The reference interpreter uses the target `air64` (`pointer_bits = 64`) unless a module declares target requirements (a later format version).
|
||||
Reference in new issue
Block a user