Repository navigation
Description
Purpose
Track output-target expansion without confusing build-host CI with code generation. Wave's registry at 8a465e30 contains 17 feature-gated target profiles, including FreeBSD, MSVC, LoongArch64 and WebAssembly. The older public target table is not the complete source of truth.
Whale currently accepts only x86_64-whale-linux, with AMD64 ELF64 assembly/object output; a complete IR-to-native path is still pending. A registry entry or machine enum alone must not imply a complete backend.
Existing work (do not duplicate)
- Add a minimal AArch64 assembler target with explicit supported forms #106: initial AArch64 assembler/leaf object path.
- Emit the minimal AMD64 COFF relocatable object subset #107: AMD64 COFF objects.
- Emit a minimal x86_64 Mach-O relocatable object subset #108: x86_64 Mach-O objects.
Bounded follow-ups
- Add an initial RISC-V 64 integer assembler and ELF leaf-object path #219 — Add an initial RISC-V 64 integer assembler and ELF leaf-object path
- Add an initial LoongArch64 integer assembler and ELF leaf-object path #220 — Add an initial LoongArch64 integer assembler and ELF leaf-object path
- Emit minimal wasm32 modules from verified scalar IR #221 — Emit minimal wasm32 modules from verified scalar IR
- Add an explicit wasm64 memory64 target profile #222 — Add an explicit wasm64 memory64 target profile
- Add a minimal WASI Preview 1 import boundary for wasm32 #223 — Add a minimal WASI Preview 1 import boundary for wasm32
- Emit the initial AArch64 Mach-O relocatable object subset #224 — Emit the initial AArch64 Mach-O relocatable object subset
- Emit the initial Windows ARM64 COFF object subset #225 — Emit the initial Windows ARM64 COFF object subset
- Lower initial Windows x64 scalar calls with the Microsoft ABI #226 — Lower initial Windows x64 scalar calls with the Microsoft ABI
- Lower initial Windows ARM64 scalar calls with the platform ABI #227 — Lower initial Windows ARM64 scalar calls with the platform ABI
- Validate the initial Darwin x86_64 scalar call and object boundary #228 — Validate the initial Darwin x86_64 scalar call and object boundary
- Lower initial Darwin AArch64 scalar calls with the Apple ABI #229 — Lower initial Darwin AArch64 scalar calls with the Apple ABI
- Model FreeBSD output profiles separately from Linux ELF targets #230 — Model FreeBSD output profiles separately from Linux ELF targets
- Model freestanding ELF profiles without hosted runtime assumptions #231 — Model freestanding ELF profiles without hosted runtime assumptions
Capability matrix requirements
- Track frontend target spelling versus deliberate Whale target IDs/aliases; preserve
x86_64-whale-linux. - Record parsing/encoding, IR lowering, object emission, ABI calls, runtime adapters, executable linking and native/emulated validation separately for each profile.
- Cover x86_64 Linux/Darwin/MSVC/FreeBSD/none; AArch64 Linux/Darwin/MSVC/FreeBSD/none; RISC-V64 Linux/FreeBSD/none; LoongArch64 Linux; wasm32 unknown/WASI Preview 1; wasm64 unknown.
- After initial leaf paths, split non-AMD64 typed-IR selection, register allocation, checked memory and relocation/linking into concrete backend follow-ups; leaf encoding alone is not full target support.
- Compare supported source-program results and traps against the independent execution/reference paths, without making LLVM or an external assembler mandatory for core Whale tests.
Boundaries
This is an index and capability-reporting task, not a single giant implementation or a promise to ship all targets in October. Keep the first Linux AMD64 path progressing. Work belongs in Whale; Wave compiler changes are outside this workstream. No good first issue label: these require target/ABI knowledge and cross-target verification.
Activity