On 07/02/2012 09:09 PM, David Riley wrote:
On Jul 2, 2012, at 20:32, Dave McGuire <mcguire at
neurotica.com>
wrote:
My targets are most commonly AVR and ARM7. Ints there are 32 bits
and shorts are 16 bits as well.
Err... What AVR toolchain? GCC has always used 16 bits for int on
AVR, AFAIK (and I've had to write assembly interfaces to my C code).
I believe they call out "int not 16 bits" as a specific gotcha,
though I'll have to look that up when I'm not on my phone.
This is gcc v4.4.6. I don't recall it having been a (toolchain)
compilation option. I will verify, but I'm porting a few bits of
formerly AVR-based C code to ARM7 right now, and not running into any
issues.
There, my predecessor used madness like "u08" (like a friggin' byte is
ever gonna be anything else!) and "u16".
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA