WIP: re-organize into lib/ dir - #2
Draft
samsonjs wants to merge 2 commits into
Draft
Conversation
samsonjs
added a commit
that referenced
this pull request
Sep 9, 2026
Everything sat at the top level in a flat asm/ directory, with each file requiring its neighbours by hand. PR #2 aimed at this layout but forked before the ELF writer existed and stubbed it out, so it is re-done here against current master rather than revived. The directory layout is now the namespace, which is what Zeitwerk needs: lib/compiler/asm/x86/registers.rb is Compiler::ASM::X86::Registers. That forced the two files defining a second top-level constant to be split, and the requires are all gone. build.rb becomes Compiler::Build and bin/compile is the command line entry point it used to carry. The nasm template moves next to the back-end that reads it, since the old path was relative to the repo root. machowriter.rb is dropped: an orphaned fragment with a syntax error that nothing required and standard could not parse.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.