Skip to content

aarch64 backend: aarch64-linux AOT output, self-hosts under qemu - #42

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

dev-dami merged 5 commits into
mainfrom
agent/xp-arm64

Conversation

@dev-dami

Copy link
Copy Markdown
Owner

trackc build --target aarch64-linux writes static ARM64 Linux executables.

  • a64.trk is an A64 instruction encoder.
  • ngen_a64.trk translates ngen's x86-64 output to A64 one instruction at a time. This covers everything ngen generates.
  • Syscalls go through a single stub that maps x86 numbers to aarch64 ones (svc #0, number in x8). a64_sys_stub is the per-OS seam that macOS will reuse.
  • elf.trk gains e_machine 183 and 64K alignment.

Results under qemu-aarch64:

  • 68 of 68 examples, native programs and bench programs match their goldens.
  • The aarch64 trackc reaches the stage1 = stage2 = stage3 fixed point.

x86-64 output is byte-identical: 69 of 69 programs, and the Windows PE is unchanged too. A clean clone bootstraps and passes 107 of 107 tests.

🤖 Generated with Claude Code

dev-dami and others added 5 commits November 23, 2026 00:56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…qemu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aarch64-linux now builds through --target aarch64-linux; the temporary
--arch flag is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dev-dami
dev-dami merged commit 721cf8b 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