11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C RUNTIME ARCHITECTUREData Type SizesTYPE SIZE (bytes) RANGEunsigned char 1 0..255signed char 1 -128..127char (*) 1 0..255unsigned short 2 0..65535(signed) short 2 -32768..32767unsigned int 2 0..65535(signed) int 2 -32768..32767pointer 2 0..65535unsigned long 4 0..4294967295(signed) long 4 -2147483648..2147483647float 4 +/-1.175e-38..3.40e+38double 48 (**)+/-1.175e-38..3.40e+38+/-2.225e-308..1.798e+308(*) char is equivalent to unsigned char.(**) 8 bytes / 64 bits double enabled <strong>for</strong> PROFESSIONAL version only.floats <strong>and</strong> doubles are in IEEE st<strong>and</strong>ard 32-bit <strong>for</strong>mat with 8-bit exponent, 23-bitmantissa, <strong>and</strong> 1 sign bit.Bitfield types must be ei<strong>the</strong>r signed or unsigned, but <strong>the</strong>y will be packed into <strong>the</strong>smallest space. For example:struct {unsigned a : 1, b : 1;};Size of this structure is only 1 byte. Bitfields are packed right to left. For example, a is<strong>the</strong> Least Significant Bit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!