SBCL – Struct by Value Final
The SBCL project has merged changes to support struct-by-value for foreign calls on x86-64 and ARM64 architectures. This enhancement allows for the passing and returning of C structs by value in alien function calls and callbacks. The updates include improvements to the handling of small and large structs during these operations.
- ▪The changes were merged by user jbouwman on January 13, 2026.
- ▪Support for struct-by-value is now available for x86-64 and ARM64 foreign calls.
- ▪Large structs over 16 bytes will use hidden pointer passing, while smaller structs will be unpacked from registers into the heap.
Opening excerpt (first ~120 words) tap to expand
jbouwman / sbcl Public forked from sbcl/sbcl Notifications You must be signed in to change notification settings Fork 0 Star 1 Code Issues 1 Pull requests 0 Actions Projects Security and quality 0 Insights Additional navigation options Code Issues Pull requests Actions Projects Security and quality Insights Struct by value final #14 New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Sign up for GitHub By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.