239/317
8 - C Language and the C Compiler
8.7 PROJECT DIRECTORY STRUCTURE
Needless to say, a well organized set of files on the computer's hard disk helps in designing
and in maintaining a software project. Using the following recommended directory structure
will make your project easier to support, since STmicroelectronics engineers, if solicited for
assistance, will quickly be able figure out where the files are, a very important thing when de-
fining the environment file, link parameter files, and more.
This structure is organized as follows:
08-tree.bmp
This figure shows the structure of the first application as described in Chapter 9. The top di-
rectory is the main directory of the project.
It contains the default.env file that contains all the settings that may be defined in the Paths
and Additional tabs in the configuration box that is displayed when you press the left-hand
button of the Hiware Tools bar.
It is also divided into three subdirectories:
8.7.1 Config directory
Config
holds the auxiliary files, that is, the configuration file for WinEdit (
project.wpj
), the
link parameter file (
link.prm
), the map file resulting from the link process (
.map
), etc. The
project.wpj
file reflects the settings made in the Tools tab in the configuration box of the Hi-
ware Tools.
The entry for the link operation should be changed in that tab so that the command line spec-
ifies the link parameter file: