Repository navigation
Conversation
Ordinary scalar loads, stores and address calculations reserve four bytes for every known offset. Emit the shortest displacement that still addresses the selected base and byte offset, using the same encoding as existing AVX2 memory operands. RBP and R13 carry a zero displacement byte when the offset is zero. Gate: native matrix | x86-64 scalar memory instructions carry their shortest fixed displacement Spec: wiki/spec/build/machine_state_evidence.md#native-emission-and-backend-testing Proof: exact bytes and altered operands for scalar forms and displacement boundaries | scoped verification in progress Agent: Codex | Model: unavailable | Effort: unavailable | Tokens: unavailable in (unavailable cached), unavailable out | Steps: unavailable | Time: unavailable | Steers: unavailable
The x86 encoding fixture could not compile after the target catalog moved its alternatives to shared slices. Iterate the slice explicitly so the fixture can compare emitted effects against the selected alternative. Gate: native matrix | x86-64 encoder tests use the current machine-effect catalog Spec: wiki/spec/build/machine_state_evidence.md#native-emission-and-backend-testing Proof: strict all-target Clippy and x86-64 unit tests | fixed a test-only iterator error also present on the base revision Agent: Codex | Model: unavailable | Effort: unavailable | Tokens: unavailable in (unavailable cached), unavailable out | Steps: unavailable | Time: unavailable | Steers: unavailable
This branch has not been deployed
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.
The x86-64 compiler spends four bytes encoding the offset on ordinary pointer loads and stores, even for an access at offset zero. Reuse the target’s existing canonical x86 addressing encoder so that known offsets use zero, one, or four bytes. Loads, stores and address calculations keep their selected operation, register operands and memory effects.
An offline experiment on the full Omega-written lexer shortened 14,871 memory operands, including frame-address operations. Its executable segment shrank from 391,282 to 336,563 bytes. The production change takes the ordinary scalar subset. The comparison of compiler-emitted executables is in progress.
Slot: claimed | Task: BACKEND-COMPACT-MEMORY-OFFSETS
Acceptance: Validate exact bytes and offset boundaries, lint the affected crates, and compare full lexer output and speed with the parent compiler.
Current state: Encoder and size bounds implemented. Parent and candidate builds in progress.
Next step: Run the same Linux x86-64 source fixture through both compilers and time their emitted executables.
Claim 18edf620fd5dda200000000018e7e039.
Gate: RC-NATIVE-MATRIX | Emit compact fixed-base addresses for ordinary x86-64 loads and stores.
Spec: wiki/spec/build/machine_state_evidence.md#final-artifact-validation-placement
Proof: Exact-byte, emitted-program and timing checks | In progress.
Agent: Codex | Model: unavailable | Effort: unavailable | Tokens: unavailable in (unavailable cached), unavailable out | Steps: unavailable | Time: unavailable | Steers: unavailable