Renesas HS2378KCM01H Network Card User Manual


 
25
Section 3 Tutorial
3.1 Introduction
The following describes the main functions of the emulator by using a tutorial program.
The tutorial program is based on the C program that sorts ten random data items in ascending or
descending order. The tutorial program performs the following actions:
The
main
function generates random data to be sorted.
The
sort
function sorts the generated random data in ascending order.
The
change
function then sorts the data in descending order.
The tutorial program is included in the
sort.c
file. The compiled load module is provided in
the Sysrof format and is included in the
tutorial.abs
file.
Table 3.1 lists the tutorial program configuration.
Table 3.1 Tutorial Program: Configuration and Parts
Item Contents
Workspace for HEW V1.2 [Installation directory]\tutorial\tutorial.hws
Load module [Installation directory]\tutorial\tutorial\Debug\tutorial.abs
Main program (source file) [Installation directory]\tutorial\tutorial\tutorial.c
Stack information file [Installation directory]\tutorial\tutorial\Debug\tutorial.sni
Notes: 1. This section describes general usage examples of the emulator. For each product
specifications, refer to section 6 or on-line help.
2.
This program was created by using Hitachi Embedded Workshop (hereafter
referred to as HEW) V1.2. Older versions of HEW will not open the workspace
included with the package, so create a new workspace in such situations.
3.
This program was compiled without optimization. If recompiled with different
settings, the addresses may differ from those given in this section.
4.
tutorial.abs is a load module in the Dwarf2 format. If a load module is
recreated in the Sysrof format, the amount of information displayed on the HDI
screen during the program’s execution will be reduced.
5.
This section describes general usage examples for the emulator. For the
specifications of particular products, refer to section 6 or the online help file.