Manually configuring the compiler – Zilog Z80380 User Manual
Page 21

UM004001-COR1103
1–9
Introduction
Sample Session
5. Type the following code in the edit window:
#include
int randnum;
int main()
{
srand(10);
randnum=rand();
randnum=rand();
}
6. Close and save the file.
N
OTE
:
Skip the Manually Configuring the Compiler section if you configured the compiler using the
wizard.
M
ANUALLY
C
ONFIGURING
THE
C
OMPILER
The user can manually add files and configure the settings for the C-Compiler.
After creating a project the user must add or create new files. A previously created project
has the following attributes saved with it:
•
Target settings
•
Assembler and Linker settings for the specified target
•
Source files (including header files)
The user must first add the necessary files for the compiler to function properly. The follow-
ing examples are based on using a small model.
Perform the following steps to add files:
1. Select Open Project from the File menu. The Open Project dialog box appears.
2. In the Open Project dialog box, select the project that was created in the previous exercise.
The project appears in the Project Viewer window.
3. Select Add to Project>Files from the Project menu. The Insert Files into Project dialog box
appears.
4. Browse to the directory where the C-Compiler was installed.
5. Select the Lib directory.
6. Select all files from the Files of type pop-up menu.