Repository navigation
Targets, extern imports, and x86_64-windows AOT output - #41
Merged
Merged
Conversation
…xtern imports, PE32+ writer x86_64-windows builds: kernel32 through the IAT with the Win64 ABI (ffi.trk), syscall6 lowered to the OS layer's os_syscall off Linux, a PE32+ console image (pe.trk). x86_64-linux output is byte-identical: the new trackc builds the base compiler source into the old seed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rm table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Wave 1 of cross-platform Track.
--target <arch>-<os>(orTRACKC_TARGET) on build, run and check. The host target is the default; unknown pairs are rejected with the list of valid ones.extern "kernel32.dll" fn WriteFile(...) -> i32;declares a function in a system DLL or dylib.ffi.trkkeeps the import table and the per-call fixups, and emits the Win64 call sequence through the IAT.compiler/rt/os/<os>.trk(linux,windows) implements the same runtime interface. The Windows one uses kernel32 and converts between UTF-8 and UTF-16.Results under wine:
net_demofails because Winsock is not done yet.On Linux:
🤖 Generated with Claude Code