
25
Section 3 Tutorial
3.1 Introduction
The following describes the main functions of the HDI 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 file tutorial.c contains source code for the tutorial program. The file tutorial.abs
is a compiled load module in the Dwarf2 format.
Table 3.1 is a list of the parts of the tutorial program and an outline of their configuration on the
hard disk.
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
Use area 3 (CS3 space) as the operating environment. The MMU function is not used.
Comentários a estes Manuais