Native Mach-O support for macOS in Rubix-lang
Raw Developer Origin & Technical Request
GitHub Issue
Oct 22, 2026
### Description
Rubix currently compiles native Linux ELF64 and Windows PE64 executables.
While Darwin syscall stubs exist in `lib/runtime.s`, the compiler still emits Linux ELF assembly syntax that macOS `clang`/`ld64` rejects.
### Goal
Add a `-t macos` target flag in `src/main.s` and `rubixc` that emits:
1. Mach-O segment and section declarations (`__TEXT,__text`).
2. Darwin 64-bit syscall offset (`0x2000000 | sys_id`).
3. Proper symbol leading underscores (e.g. `_main` instead of `_start`).
### Target Files
- `src/codegen.s`
- `src/main.s`
- `lib/runtime.s`
- `rubixc`
### Acceptance Criteria
- `./rubixc -t macos examples/01_hello.ix -o hello_mac` produces an executable that links and runs on macOS x86-64.
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from tek-sys-hub/Rubix-lang.
Frequently Asked Questions
Market intelligence mapped to Native Mach-O support for macOS in Rubix-lang.
How is Native Mach-O support for macOS in Rubix-lang positioned in the market?
How is the developer community reacting to Native Mach-O support for macOS in Rubix-lang?
What architecture is tied to Native Mach-O support for macOS in Rubix-lang?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like _main and _start by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics