My intention is to output a list with offsets of all struct members from a typedef struct
.
In my case this struct is stored in an external EEPROM which can be accessed bytewise via an interface accessible via a serial connection.
To access the EEPROM contents, I need to know the offsets of the struct members.
How can I tell the compiler to perform the offsetof task on every struct member?