flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > [fasmg] Apple M-series additions + native macOS/arm64 |
| Author |
|
|
pablop 20 Oct 2026, 17:53
Hi all,
I've been using fasmg for some AArch64/macOS work and ended up filling in a few gaps I ran into, with help from an AI coding assistant (Claude Code) doing most of the actual implementation under my direction. I want to be upfront about that rather than bury it, since I know opinions on AI-written code are mixed around here (fair enough) - so let me lead with how it was checked rather than just the "trust me" version:
What's in it, for anyone working on aarch64.inc or macOS targets:
Known gaps, documented rather than hidden: no rebase-fixup support yet (so absolute pointers baked into static data aren't safe under ASLR - examples use array indices instead), and no variadic-argument support in the ccall helper (Darwin passes varargs on the stack, not in registers, which the generic calling helper doesn't know about yet). Repo's here if anyone wants to poke at it: https://github.com/ppiecuch/fasmg I'd genuinely welcome anyone more experienced with fasmg's macro internals taking a look - there are a couple of spots (the chained-fixups generation in particular) that work but feel like they're fighting the existing structure more than they should.[/b] |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.