News for hackers. Stuff that matters.
Re:Structures in C: From Basics to Memory Alignment by Dylan16807 on Thursday June 29, 2023 @08:59PM (#36529133)
> Another common reason is when two CPUs of different architecture need to access the same structure in memory.

That sounds like mapping memory and something you could avoid with the right compiler flags.

> Or you read structured binary data from disk and need to specify an exact layout.

If you need it stay in the same form it has on the disk, I think it's fair to call that a concern in the category of "map some memory". Edit: And other spots in the text explicitly include file formats.

Basically I think you're giving examples rather than exceptions.

There are no comments on this comment yet.