Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
Part 1. Using the compiler
3
Getting started
This chapter gives the information you need to get started using the AVR IAR 
C/C++ Compiler for efficiently developing your application.
First you will get an overview of the supported programming languages, 
followed by a description of the steps involved for compiling and linking an 
application.
Next, the compiler is introduced. You will get an overview of the basic settings 
needed for a project setup, including an overview of the techniques that enable 
applications to take full advantage of the AVR microcontroller. In the following 
chapters, these techniques will be studied in more detail.
IAR language overview
There are two high-level programming languages available for use with the AVR IAR 
C/C++ Compiler:
C, the most widely used high-level programming language used in the embedded 
systems industry. Using the AVR IAR C/C++ Compiler, you can build 
freestanding applications that follow the standard ISO 9899:1990. This standard is 
commonly known as ANSI C.
C++, a modern object-oriented programming language with a full-featured library 
well suited for modular programming. IAR Systems supports two levels of the 
C++ language:
Embedded C++ (EC++), a subset of the C++ programming standard, which is 
intended for embedded systems programming. It is defined by an industry 
consortium, the Embedded C++ Technical committee. See the chapter Using 
C++
.
IAR Extended EC++, with additional features such as full template support, 
namespace support, the new cast operators, as well as the Standard Template 
Library (STL).
Each of the supported languages can be used in strict or relaxed mode, or relaxed with 
IAR extensions enabled. The strict mode adheres to the standard, whereas the relaxed 
mode allows some deviations from the standard.
It is also possible to implement parts of the application, or the whole application, in 
assembler language. See the AVR® IAR Assembler Reference Guide.