Post #2841646
2026-04-22 01:18 UTC
In Release mode, it seems that Swift is copying the memory or aliasing it or something - the address of the Swift variable is different than the address of the C allocation. And because the compiler thinks the struct's field is an array of length 1, it doesn't know to copy/alias the right amount of memory.
I feel there must be a way to tell the compiler "just use the C memory as-is, where-is" (which is what happens in Debug mode). Anyone have any ideas? (2/3)
Replies (1)
-
@json@micro.sadlerjw.com 2026-04-22 01:18
(The C library is cc65's dbginfo: https://github.com/cc65/cc65/tree/master/src/dbginfo) (3/3)