241/317
8 - C Language and the C Compiler
this is where the include files and the libraries are searched from:
C:\hicross\LIB\ST7C
C:\hicross\LIB\ST7C\INCLUDE
C:\ST7\WORK\X10xmit\sources\map
C:\ST7\WORK\X10xmit\sources\lib
Object:
this is where the object files created by the assembler and the compiler are put:
C:\ST7\WORK\X10xmit\object
Text is not used and is left blank.
8.7.2 Object directory
As the name implies, this directory contains the object files generated by various phases of the
process: the compiler objects, the assembler objects, the absolute object files, and the hexa-
decimal file (if any).
This directory must also contain an information file that will tell the debugger where to find the
various source files to show in the source windows while debugging. This file must be called
by the same name as the object file, but with the extension
.GDB
, like
X10XMIT.GDB
in our ex-
ample. This file contains the list of the directories where sources may be found, as follows:
directory C:\ST7\WORK\X10XMIT\SOURCES\MAIN
directory C:\ST7\WORK\X10XMIT\SOURCES\INTSUB
directory C:\ST7\WORK\X10XMIT\SOURCES\MAP
directory C:\ST7\WORK\X10XMIT\CONFIG
8.7.3 Sources directory
This directory contains the user-written source files, and the header files, either user-written or
supplied in the package or by STMicroelectronics. It is divided into four subdirectories, each
containing source files (
.C
) and the related header files (
.H
), if they are specific to that group.
The header files common to the whole project are put into the
Lib
directory:
The
Main
directory contains the sources related to the code of the main program.
The
IntSub
directory contains the sources related to the interrupt service routines.
The
Map
directory contains the sources that define the registers and the memory mapping.
The
Lib
directory contains the header files or other files that are common to the whole
project.
To allow the compiler, linker, etc. to find their way in this structure, the
DEFAULT.ENV
file placed
in the main directory of the project, specifies the various paths. In the example below, the path
of the project is
c:\st7\work\x10xmit
. You will of course replace it with your own path. Paths