Skip to content

aarch64-windows: ARM64 PE output; all six targets build - #46

Merged
dev-dami merged 3 commits into
mainfrom
agent/xp-arm64-win
Nov 23, 2026
Merged

dev-dami merged 3 commits into
mainfrom
agent/xp-arm64-win

Conversation

@dev-dami

Copy link
Copy Markdown
Owner

trackc build --target aarch64-windows writes ARM64 PE32+ images. This finishes the target matrix: x86_64 and aarch64 × Linux, macOS and Windows.

  • pe.trk: machine 0xAA64, DYNAMIC_BASE with a minimal .reloc (ARM64 requires it), and no load config or .pdata (neither is needed to run).
  • Import calls: ax_import_call_win maps the Win64 argument registers rcx, rdx, r8 and r9 to AAPCS64 x0–x3, the stack words to x4–x7, and args 9 and up to [sp]. x18, the TEB register, is never used, and a test checks that.
  • Default target: an ARM64 trackc.exe defaults to aarch64-windows.
  • CI: windows-arm-cross (ubuntu) and windows-arm (windows-11-arm). The second runs the goldens, rebuilds hello on the device and compares hashes, then runs tests/windows/run.ps1.
  • Docs: README and docs/native.md list all six targets and how each is tested.

Verification:

  • hello, the 15 examples and trackc all parse cleanly with the llvm tools.
  • The other targets' hello builds are byte-identical before and after.
  • A clean clone (with main merged) bootstraps, both seeds are up to date, 120 of 120 tests pass, and yard passes 14 of 14 twice.

Not yet run on Windows-on-ARM hardware: the windows-arm CI job is the first run.

🤖 Generated with Claude Code

dev-dami and others added 3 commits November 23, 2026 01:39
pe.trk writes IMAGE_FILE_MACHINE_ARM64 images (DYNAMIC_BASE, an empty
.reloc block, adrp+ldr IAT fixups); the A64 translator gains the Windows
import call (rcx/rdx/r8/r9 + Win64 stack words to x0-x7 and [sp]) and a
brk system call stub. --target aarch64-windows now builds; reseeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
windows-arm-cross builds trackc.exe, hello and the examples for
aarch64-windows on Linux; windows-arm runs them on windows-11-arm against
the goldens and checks trackc.exe rebuilds hello byte for byte. An Arm64
trackc.exe defaults to aarch64-windows. README and docs/native.md list
all six targets with how each is tested. Reseeded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dev-dami
dev-dami merged commit ce881cc into main Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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