Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: