Next:
Contents
Up:
Free Pascal manuals : Contents
Programmers' manual for Free Pascal, version 1.0.2 1.8
Free Pascal
Programmers' manual
Michaël Van Canneyt
December 2000
Contents
List of Tables
About this document
1
. Compiler directives
1
.
1
Local directives
1
.
2
Global directives
2
. Using conditionals, messages and macros
2
.
1
Conditionals
2
.
2
Messages
2
.
3
Macros
3
. Using Assembly language
3
.
1
Intel syntax
3
.
2
AT&T Syntax
3
.
3
Calling mechanism
3
.
4
Signalling changed registers
3
.
5
Register Conventions
4
. Linking issues
4
.
1
Using external functions or procedures
4
.
2
Using external variables
4
.
3
Linking to an object file
4
.
4
Linking to a library
4
.
5
Making libraries
4
.
6
Using smart linking
5
. Objects
5
.
1
Constructor and Destructor calls
5
.
2
Memory storage of objects
5
.
3
The Virtual Method Table
6
. Generated code
6
.
1
Units
6
.
2
Programs
7
. Intel MMX support
7
.
1
What is it about ?
7
.
2
Saturation support
7
.
3
Restrictions of MMX support
7
.
4
Supported MMX operations
7
.
5
Optimizing MMX support
8
. Memory issues
8
.
1
The 32-bit model.
8
.
2
The stack
8
.
3
The heap
8
.
4
Using
DOS
memory under the Go32 extender
9
. Resource strings
9
.
1
Introduction
9
.
2
The resource string file
9
.
3
Updating the string tables
9
.
4
GNU gettext
9
.
5
Caveat
10
. Optimizations
10
.
1
Non processor specific
10
.
2
Optimization switches
10
.
3
Tips to get faster code
10
.
4
Floating point
11
. Programming libraries
11
.
1
Introduction
11
.
2
Creating a library
11
.
3
Using a library in a pascal program
11
.
4
Using a pascal library from a C program
12
. Using Windows resources
12
.
1
The resource directive
$R
12
.
2
Creating resources
12
.
3
Using string tables.
12
.
4
Inserting version information
12
.
5
Inserting an application icon
12
.
6
Using a pascal preprocessor
A. Anatomy of a unit file
A.
1
Basics
A.
2
reading ppufiles
A.
3
The Header
A.
4
The sections
A.
5
Creating ppufiles
B. Compiler and RTL source tree structure
B.
1
The compiler source tree
B.
2
The RTL source tree
C. Compiler limits
D. Compiler modes
D.
1
FPC mode
D.
2
TP mode
D.
3
Delphi mode
D.
4
GPC mode
D.
5
OBJFPC mode
E. Using
fpcmake
E.
1
Introduction
E.
2
Usage
E.
3
Format of the configuration file
E.
4
Programs needed to use the generated makefile
E.
5
Variables that affect the generated makefile
E.
6
Variables set by
fpcmake
E.
7
Rules and targets created by
fpcmake
F. Compiling the compiler yourself
F.
1
Introduction
F.
2
Before you begin
F.
3
Compiling using
make
F.
4
Compiling by hand
root
2000-12-20