[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] [EEPROM] patch take 2: Fix mis-feature of lacking EEP
Re: [avr-libc-dev] [EEPROM] patch take 2: Fix mis-feature of lacking EEPROM support for many targets / rewrite of eeprom functions
Sun, 31 Jul 2005 15:34:04 +1100
Hi, Björn and all.
Notes about 'eeprom_patch_take2.patch':
1. eeprom_read_block: operands sequence is changed.
2. function definitions: 'static inline' must before type of return
value. Compiler give warnings.
3. My opinion is debatable.
You are right, that, as a rule, the size of the block less than 256 and is a
constant. But it is often, the wrapper functions are used. It interferes with
the compiler to define the size of the block and it inserts into the program
a cycle. For example, avr-gcc 4.0.0 with '-Os' insert:
/* #APP */
/* #NOAPP */
Other approach - to transfer all actions to library functions. I shall try to
compare these two variants.