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.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVREnds a function section. The is <strong>the</strong> address beyond <strong>the</strong> last instruction of<strong>the</strong> function. To access <strong>the</strong> function return sequence, see BLOCKEND below.DEFGLOBAL Defines a file-scoped global symbol.DEFSTATIC Defines a file-scoped global symbol.START Specifies <strong>the</strong> address of <strong>the</strong> __start symbol, which is usually <strong>the</strong> startingaddress of an ImageCraft generated program.Function-Level Comm<strong>and</strong>s BLOCK Starts a block in which symbols may be defined. All DEFLOCAL <strong>and</strong> DEFREGcomm<strong>and</strong>s must come after a BLOCK comm<strong>and</strong>. In <strong>the</strong> current version, <strong>the</strong>re isonly one group of BLOCK/BLOCKEND comm<strong>and</strong> per function <strong>and</strong> all localvariables are declared in this block, even if <strong>the</strong>y are declared in an inner block in<strong>the</strong> source code. (This will be remedied in a future version of <strong>the</strong> <strong>compiler</strong> <strong>and</strong>debug <strong>for</strong>mat. See “Future Enhancements” below.)The <strong>and</strong> are exactly <strong>the</strong> same as <strong>the</strong> ones specified in <strong>the</strong>LINE comm<strong>and</strong> that follows it. BLOCKEND Ends a symbol-scoped block. The <strong>and</strong> are exactly <strong>the</strong> sameas <strong>the</strong> ones specified in <strong>the</strong> LINE comm<strong>and</strong> that follows it.A special case is when is 0 (<strong>and</strong> this would be <strong>the</strong> last BLOCKEND in<strong>the</strong> function). In this case, <strong>the</strong> function return sequence starts at this -note that ImageCraft <strong>compiler</strong> generates only one return sequence per function. LINE Defines a line number <strong>and</strong> its code address. DEFLOCAL Defines a function-scoped symbol. is a decimal offset, usually from <strong>the</strong>frame pointer. DEFREG 194

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

Saved successfully!

Ooh no, something went wrong!