ICCAVR – C Cross Compiler for the Atmel AVR
- 1 -
INTRODUCTION....................................................................................................................3
Version, Trademarks, and Copyrights ................................................................................. 3
IMPORTANT: Registering the Software...............................................................................3
Software License Agreement .............................................................................................. 4
About the ImageCraft Development Environment ................................................................ 5
Support...............................................................................................................................5
Product Updates ................................................................................................................. 6
Frequently Asked Questions ...............................................................................................6
File Types and File Extensions............................................................................................7
Pragmas and Extensions ....................................................................................................8
Converting from Other Compilers........................................................................................9
Acknowledgments...............................................................................................................9
TUTORIALS......................................................................................................................... 10
Getting Started.................................................................................................................. 10
Anatomy of a C Program...................................................................................................10
IDE Overview....................................................................................................................11
Using the Project Manager................................................................................................12
IDE.......................................................................................................................................12
Compiling a Single File ..................................................................................................... 12
Creating a New Project ..................................................................................................... 13
Project Manager ...............................................................................................................13
Editor................................................................................................................................13
Application Builder ............................................................................................................ 13
Status Window.................................................................................................................. 14
Terminal Emulator.............................................................................................................14
REFERENCES.....................................................................................................................14
Pop Up Menus .................................................................................................................. 14
File Menu..........................................................................................................................14
Edit Menu ......................................................................................................................... 15
Search Menu ....................................................................................................................15
View Menu........................................................................................................................ 16
Project Menu ....................................................................................................................17
RCS Menu........................................................................................................................ 17
Tools Menu....................................................................................................................... 17
Terminal Menu.................................................................................................................. 18
Compiler Options ..............................................................................................................18
Compiler Options: Paths ................................................................................................... 18
Compiler Options: Compiler .............................................................................................. 19
Compiler Options: Target ..................................................................................................20
Environment Options ........................................................................................................21
Editor and Print Options ....................................................................................................21
Terminal Options ..............................................................................................................23
C LIBRARY AND THE STARTUP FILE ................................................................................24
Overriding a Library Function............................................................................................24
Startup File ....................................................................................................................... 24
C Library General Description...........................................................................................24
Character Type Functions.................................................................................................25
Floating Point Math Functions...........................................................................................26
Standard IO functions .......................................................................................................27
Standard Library And Memory Allocation Functions...........................................................29
String Functions................................................................................................................30
Variable Argument Functions ............................................................................................33
PROGRAMMING THE AVR .................................................................................................33
Accessing AVR Features ..................................................................................................33
Bit Twiddling .....................................................................................................................34
Program Memory and Constant Data ................................................................................34