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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVRchar *p;...... *p++...The <strong>compiler</strong> may not be as optimal, since *p is a temporary value that needs to bepreserved.OperatorsC has a rich set of operators, including bitwise operators that make h<strong>and</strong>ling IOregisters easy. There is no “logical” or “boolean” type per se, so any non-zero value istaken as “true.” You may intermix any operators, including logical, bit-wise, etc., in anexpression. The following lists <strong>the</strong> operators from high to lower precedence. Withineach row, <strong>the</strong> operators have <strong>the</strong> same precedence.Table 2: Operator Precedence <strong>and</strong> AssociativityOperators() function call[] array element-> structure pointer field dereference. structure field reference! logical not~ one’s complement++ pre/post increment-- pre/post decrement+ unary plus- unary minus* pointer dereference& address of(type) type castsizeof size of type* multiply/ divide% remainder+ addition- subtractionAssociativityleft to rightright to leftleft to rightleft to right79

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

Saved successfully!

Ooh no, something went wrong!