Next:
Contents
Up:
Free Pascal manuals : Contents
Programmers' manual for Free Pascal, version 1.0.4 1.8
Free Pascal
Programmers' manual
Michaël Van Canneyt
september 2001
Contents
List of Tables
About this document
1
Compiler directives
1
Local directives
2
Global directives
2
Using conditionals, messages and macros
1
Conditionals
2
Messages
3
Macros
3
Using Assembly language
1
Intel 80x86 Inline assembler
2
Motorola 680x0 Inline assembler
3
Signaling changed registers
4
Generated code
1
Units
2
Programs
5
Intel MMX support
1
What is it about?
2
Saturation support
3
Restrictions of MMX support
4
Supported MMX operations
5
Optimizing MMX support
6
Code issues
1
Register Conventions
2
Name mangling
3
Calling mechanism
4
Nested procedure and functions
5
Constructor and Destructor calls
6
Entry and exit code
7
Parameter passing
7
Linking issues
1
Using external code and variables
2
Making libraries
3
Using smart linking
8
Memory issues
1
The memory model.
2
Data formats
3
Data alignment
4
The heap
5
Using
DOS
memory under the Go32 extender
9
Resource strings
1
Introduction
2
The resource string file
3
Updating the string tables
4
GNU gettext
5
Caveat
10
Optimizations
1
Non processor specific
2
Processor specific
3
Optimization switches
4
Tips to get faster code
5
Tips to get smaller code
11
Programming shared libraries
1
Introduction
2
Creating a library
3
Using a library in a pascal program
4
Using a pascal library from a C program
12
Using Windows resources
1
The resource directive
$R
2
Creating resources
3
Using string tables.
4
Inserting version information
5
Inserting an application icon
6
Using a pascal preprocessor
A. Anatomy of a unit file
1
Basics
2
reading ppufiles
3
The Header
4
The sections
5
Creating ppufiles
B. Compiler and RTL source tree structure
1
The compiler source tree
2
The RTL source tree
C. Compiler limits
D. Compiler modes
1
FPC mode
2
TP mode
3
Delphi mode
4
GPC mode
5
OBJFPC mode
E. Using
fpcmake
1
Introduction
2
Usage
3
Format of the configuration file
4
Programs needed to use the generated makefile
5
Variables that affect the generated makefile
6
Variables set by
fpcmake
7
Rules and targets created by
fpcmake
F. Compiling the compiler yourself
1
Introduction
2
Before you begin
3
Compiling using
make
4
Compiling by hand
G. Compiler defines during compilation
H. Stack configuration
1
DOS
2
Linux
3
netbsd
4
freebsd
5
BeOS
6
Windows
7
OS/2
8
Amiga
9
Atari
I. Operating system specific behavior
Free Pascal Compiler
2001-09-22