This commit is contained in:
Nilton Constantino
2026-02-02 16:31:06 +00:00
parent 6330c6cbae
commit f80cb64f66
17 changed files with 594 additions and 157 deletions
-34
View File
@@ -1,37 +1,3 @@
## PR-14 — Compiler Output Format v0: emit per-project object module (intermediate)
**Why:** Linking requires a well-defined intermediate representation per project.
### Scope
* Define `CompiledModule` (compiler output, **NOT** final VM blob):
* `project_id` — canonical project name
* `target` — `main` or `test`
* `exports` — exported symbols (`pub`) indexed by `(module_path, symbol_name, kind)`
* `imports` — symbol references as:
* `(dep_alias, module_path, symbol_name)`
* `const_pool` — constant pool fragment
* `code` — bytecode fragment
* `function_metas` — local function metadata fragment
* No linking or address patching occurs here.
### Deliverables
* `compile_project(step: BuildStep) -> Result<CompiledModule, CompileError>`
### Tests
* compile root-only project into a valid `CompiledModule`
### Acceptance
* Compiler can emit a deterministic, linkable object module per project.
---
## PR-15 — Link Orchestration v0 inside `prometeu_compiler`
**Why:** The compiler must emit a single closed-world executable blob.