Hello,
I have been following the Go Runtime and Compiler team meeting notes for a
while. In the recent notes, I noticed something that got my attention
regarding memory layout optimization for structures.
https://github.com/golang/go/issues/43930#issuecomment-2009816508
I'm working on some code that interfaces with C libraries without directly
utilizing the CGo tool (for portability reasons). Currently, I'm adding
padding fields manually for C structs like
struct {a int32; _ [4]byte}
Would this behavior be affected?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/33c647d5-8edb-44ec-bfa5-7fa4b9d4a214n%40googlegroups.com.