On Friday 16 June 2006 23:26, Bob Paddock wrote: > > The only reliable, repeatable and maintainable (i.e., without manually > > specifying each address) way to get consistent addresses is to put all > > your eeprom data into a single struct. It's best to make sure that any > > padding involved is explicit (using the "-wpadded" warning).
I don't have the original email so I'm replying to this reply..
WRT packing you can tell GCC to not pack a particular data structure like so..
typedef struct _foo_t {
int a;
char b;
float c;
} __attribute__ ((packed)) foo_t;
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgpvzJiTdM62P.pgp
Description: PGP signature
_______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
