> I'm not sure how easy it'd be to create const's that you could ensure were > valid C structs.
My understanding is that nim objects map 1:1 to C structs. c2nim always add the `{.bycopy.}` pragma, but I'm not sure why that's required. However, I also just learned that you can't create a `const` pointer, including `const` objects that contain `ptr` in their fields. If your struct is all values, then it should be OK, you can take its `addr` at run time. > Preferably being able to put them into the .data sections of a program so > it'd only be accessed as needed directly from flash. No idea about that. Something something linker script?