Skip to content

Runtime library refactor#104

Open
RavenZhou07 wants to merge 28 commits into
Generative-Program-Analysis:mainfrom
RavenZhou07:runtime-library-refactor
Open

Runtime library refactor#104
RavenZhou07 wants to merge 28 commits into
Generative-Program-Analysis:mainfrom
RavenZhou07:runtime-library-refactor

Conversation

@RavenZhou07

Copy link
Copy Markdown

Summary
This PR adds an initial runtime library refactor for GenSym. The main goal is to start separating part of the GenSym runtime implementation from the generated C++ translation units, so that future work can move more runtime logic into independently compiled source files instead of repeatedly compiling everything through headers.
This is an initial step rather than a complete migration away from the current header-based runtime structure.

Changes
Added a new runtime library structure under runtime/.
Added runtime/include/gensym/runtime.hpp as the entry header for the runtime library.
Added runtime/src/runtime.cpp as the initial runtime source file.
Added runtime/src/defs.cpp to move part of the definitions out of the header-only path.
Updated headers/gensym/defs.hpp accordingly so that these definitions can be provided by the runtime source file instead of being fully defined in the header.

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.

4 participants