just wondering if the int type in GCC/AS6 are all using 16bits size in all the chip?
or could they be different depends on the chip?
Zhuhua Wu - Electronic Engineering Student
By definition, an integer in C is at least 16 bits.
For all (x)(mega)(tiny)AVR8s, an int is 16 bit.
Don't rely on knowing the size of int, use
And on the AVR32 (with the GCC toolchain) an int is 32-bits.
good to know this
Exactly why I wrote AVR8 ;)
Note that following a request I have split the discussion about using sizeof() from here to a separate thread:
That means: on a 32-bit platform you might get different results than on a 16-bit platform, for example in (a+b)/2 if the sum doues no more fit in a 16-bit value but the result does.
avrfreaks does not support Opera. Profile inactive.
© 2019 Microchip Technology Inc.