Skip to content

AOT: Link multiple translation units into one binary #154

@PurHur

Description

@PurHur

Problem

bin/compile.php emits one .o per entry file. Multi-file apps need linking multiple objects + runtime.

Goal

phpc build produces single executable from entry + included modules (#59).

Tasks

  • Track symbols across compilation units in project build
  • Extend lib/AOT/Linker.php for multiple .o
  • Resolve duplicate superglobal init
  • Test: entry includes helper.php

Acceptance

Two-file app links and runs as one binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions