Chapter 3
Compiler usage

Here we describe the essentials to compile a program and a unit. For more advanced uses of the compiler, see the section on configuring the compiler, and the Programmers guide.

The examples in this section suppose that you have a fpc.cfg which is set up correctly, and which contains at least the path setting for the RTL units. In principle this file is generated by the installation program. You may have to check that it is in the correct place (see section 5.2 for more information on this).


 3.1 File searching
   Command line files
   Unit files
   Include files
   Object files
   Configuration file
   About long filenames
 3.2 Compiling a program
 3.3 Compiling a unit
 3.4 Units, libraries and smartlinking
 3.5 Creating an executable for GO32V1 and PMODE/DJ targets
   GO32V1
   PMODE/DJ
 3.6 Reducing the size of your program