pr 58
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user