Next:
1. Introduction
Up:
Free Pascal : Users'
Previous:
Free Pascal : Users'
Contents
Contents
1
. Introduction
1
.
1
About this document
1
.
2
About the compiler
1
.
3
Getting more information.
2
. Installing the compiler
2
.
1
Before Installation : Requirements
2
.
1
.
1
System requirements
2
.
1
.
2
Software requirements
2
.
2
Installing the compiler.
2
.
2
.
1
Installing under DOS or Windows
2
.
2
.
2
Installing under Linux
2
.
3
Optional configuration steps
2
.
4
Testing the compiler
3
. Compiler usage
3
.
1
File searching
3
.
1
.
1
Command line files
3
.
1
.
2
Unit files
3
.
1
.
3
Include files
3
.
1
.
4
Object files
3
.
1
.
5
Configuration file
3
.
1
.
6
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
3
.
5
.
1
GO32V1
3
.
5
.
2
PMODE/DJ
3
.
6
Reducing the size of your program
4
. Compiling problems
4
.
1
General problems
4
.
2
Problems you may encounter under DOS
5
. Compiler configuration
5
.
1
Using the command-line options
5
.
1
.
1
General options
5
.
1
.
2
Options for getting feedback
5
.
1
.
3
Options concerning files and directories
5
.
1
.
4
Options controlling the kind of output.
5
.
1
.
5
Options concerning the sources (language options)
5
.
2
Using the configuration file
5
.
2
.
1
#IFDEF
5
.
2
.
2
#IFNDEF
5
.
2
.
3
#ELSE
5
.
2
.
4
#ENDIF
5
.
2
.
5
#DEFINE
5
.
2
.
6
#UNDEF
5
.
2
.
7
#WRITE
5
.
2
.
8
#INCLUDE
5
.
2
.
9
#SECTION
5
.
3
Variable substitution in paths
6
. Porting Turbo Pascal Code
6
.
1
Things that will not work
6
.
2
Things which are extra
6
.
3
Turbo Pascal compatibility mode
6
.
4
A note on long file names under
DOS
7
. Utilities and units that come with Free Pascal
7
.
1
Demo programs and examples
7
.
2
Supplied programs
7
.
2
.
1
ppudump program
7
.
2
.
2
ppumove program
7
.
2
.
3
ptop - Pascal source beautifier
7
.
2
.
4
rstconv program
7
.
2
.
5
fpcmake
7
.
3
Supplied units
7
.
3
.
1
Units common to all platforms
7
.
3
.
2
Under DOS
7
.
3
.
3
Under Windows
7
.
3
.
4
Under Linux
7
.
3
.
5
Under OS/2
8
. Debugging your Programs
8
.
1
Compiling your program with debugger support
8
.
2
Using
gdb
to debug your program
8
.
3
Caveats when debugging with
gdb
8
.
4
Support for
gprof
, the
GNU
profiler
8
.
5
Detecting heap memory leaks
8
.
6
Line numbers in run-time error backtraces
8
.
7
Combining
heaptrc
and
lineinfo
9
. CGI programming in Free Pascal
9
.
1
Getting your data
9
.
1
.
1
Data coming through standard input.
9
.
1
.
2
Data passed through an environment variable
9
.
2
Producing output
9
.
3
I'm under Windows, what now ?
A. Alphabetical listing of command-line options
B. Alphabetical list of reserved words
C. Compiler messages
C.
1
General compiler messages
C.
2
Scanner messages.
C.
3
Parser messages
C.
4
Type checking errors
C.
5
Symbol handling
C.
6
Code generator messages
C.
7
Errors of assembling/linking stage
C.
8
Unit loading messages.
C.
9
Command-line handling errors
C.
10
Assembler reader errors.
C.
10
.
1
General assembler errors
C.
10
.
2
I386 specific errors
C.
10
.
3
m68k specific errors.
D. Run time errors
E. The Floating Point Coprocessor emulator
F. A sample
gdb.ini
file
root
2000-09-24