Skip to content

Build standalone TellC for Linux x86-64 and ARM64 - #17

Merged
Neonwave175 merged 1 commit into
mainfrom
feat/tellc-standalone-linux
Nov 18, 2026
Merged

Neonwave175 merged 1 commit into
mainfrom
feat/tellc-standalone-linux

Conversation

@Neonwave175

Copy link
Copy Markdown
Collaborator

Summary

  • Cross-build static TellC binaries for Linux x86-64 and ARM64 from macOS or Linux using Zig. Both include LLVM code generation, the ELF LLD driver, and musl and C++ runtimes for both targets.
  • Add --target x86_64|aarch64 to standalone Linux TellC. It defaults to the architecture of the compiler binary.
  • Use anonymous linker inputs through Linux procfs, so compilation works without external tools, SDKs, or a writable temporary directory. Document how to build and verify the standalone compilers.

Verification

  • Built both Linux binaries and verified that they have no ELF interpreter or dynamic segment.
  • Tested both in Apple Containers on Alpine 3.22, with networking disabled and unusable PATH and TMPDIR. Covered factorial, objects, console and file I/O, diagnostics, and a static C++ archive.
  • Cross-compiled factorial in both directions. Both static outputs printed 120 in their target containers. x86-64 ran through Rosetta.
  • Passed all seven macOS TellC CTest tests.

@Neonwave175
Neonwave175 merged commit 246f748 into main Nov 18, 2026
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