Overview
stackman currently supports Linux, macOS, and Windows. Adding BSD variants would expand platform coverage for POSIX systems.
Platforms to consider
- FreeBSD - Popular server OS, similar to Linux ABIs
- OpenBSD - Security-focused, may need special considerations
- NetBSD - Highly portable, good test of platform abstraction
Technical considerations
- Most use same ABIs as Linux (sysv_amd64, arm64, etc.)
- Main differences: object format details, system headers
- May need adjustments to Makefile and CI workflows
- OpenBSD has W^X restrictions that may affect stack switching
Implementation approach
- Start with FreeBSD (largest user base)
- Likely can reuse existing
switch_*_gcc.S files
- Add platform detection in
platforms/platform.h
- CI: GitHub Actions has FreeBSD support via
vmactions/freebsd-vm
Priority
Medium - These platforms have active user communities but smaller than Linux/macOS/Windows.
Referenced in conversation about future platform additions.
Overview
stackman currently supports Linux, macOS, and Windows. Adding BSD variants would expand platform coverage for POSIX systems.
Platforms to consider
Technical considerations
Implementation approach
switch_*_gcc.Sfilesplatforms/platform.hvmactions/freebsd-vmPriority
Medium - These platforms have active user communities but smaller than Linux/macOS/Windows.
Referenced in conversation about future platform additions.