Skip to content

Avoid global declarations in generated function bodies - #253

Open
jfmherokiller wants to merge 1 commit into
ran-j:mainfrom
jfmherokiller:codex/remove-generated-header-dependency
Open

jfmherokiller wants to merge 1 commit into
ran-j:mainfrom
jfmherokiller:codex/remove-generated-header-dependency

Conversation

@jfmherokiller

Copy link
Copy Markdown

Generated function bodies dispatch guest calls through PS2Runtime and do not reference declarations for every generated function. Removing the unused header prevents a function-map rename from invalidating every generated translation unit; only the changed body and registration table need recompilation.

Validation: built ps2_recomp with GCC 16 from a clean native build. Added an emitter regression test that keeps the header out of per-function output.

@jfmherokiller
jfmherokiller force-pushed the codex/remove-generated-header-dependency branch from 6bf3a00 to f5f8cfa Compare September 6, 2026 23:49
@jfmherokiller
jfmherokiller force-pushed the codex/remove-generated-header-dependency branch from f5f8cfa to 403305a Compare September 7, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant