3 ms·
With gcc on an AVR an int is 16 bits and alignment is 1 as well. That said I ported a bunch of stuff from the AVR to a 32 bit ARM Cotrex and the mostly non har
by Gibbon1 10y ago
With gcc on an AVR an int is 16 bits and alignment is 1 as well.
That said I ported a bunch of stuff from the AVR to a 32 bit ARM Cotrex and the mostly non hardware dependent stuff stuff just worked. On the other hand stdint.h is an old friend to me.
Amusing bit
int apple = 74000; // fails on 8 bit machines