[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] ?Optimized eeprom?
From: |
Daniel O'Connor |
Subject: |
Re: [avr-chat] ?Optimized eeprom? |
Date: |
Sat, 17 Jun 2006 09:46:34 +0930 |
User-agent: |
KMail/1.9.3 |
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
pgphdcMH5Tx2G.pgp
Description: PGP signature