Hardware Reference
In-Depth Information
the file onto the demo board for execution. Error messages and warnings generated by the ICC12
IDE are displayed in the status pane. The project file structure is displayed in the Project pane.
When the user uses the ICC12 IDE for the first time, he or she needs to set up the com-
piler options. The compiler options dialog can be brought up by pressing the Project menu in
Figure 5.25 and selecting Options . . . . A dialog box as shown in Figure 5.26 will appear to allow
the user to set all the compiler options to appropriate values. The setting in Figure 5.26 will
work for the Dragon12-Plus demo board. When the user is satisfied with the compiler options,
he or she should click on OK to get rid of the dialog.
Figure 5.26 Dialog for setting ICC12 compiler options
Compiler options need only be set once. The ICC12 C compiler will remember the options
until the user changes them.
5.12.2 Creating a New Project
A new project can be created by pressing the Project menu and selecting New. A popup
dialog box as shown in Figure 5.27 will appear to allow the user to enter the project name and
select the project directory (specified in the space to the right of Save in: ). If we set the project
name to ICCTUTOR and save it in the directory of ch05 and then click on Save, the screen will
change to that in Figure 5.28.
5.12.3 Adding Files to the Project
A new file can be created by pressing on the File menu and selecting New to convert the
work-space pane in Figure 5.25 into an editor work space. We will use the program that finds
the greatest common devisor (gcd) as an example to illustrate the project build process for the
ICC12 IDE. The program is shown in Figure 5.29. The printf function provided by ImageCraft
requires the putchar function to work. However, putchar was not provided by the ICC12 IDE. A
version must be created and added to your project.
 
Search WWH ::




Custom Search