Compiler development articles

This is an old revision of Compiler development articles, edited by FPK at . The current revision is 30376.

/* Processor dependent */

The current FPC version under developement is 1.9.x. Compiler internals are documented at the evolving FPC internals page.

General

How to start

FPC internals

Language related articles

Enable new style smartlinking (freebsd,linux)

C++ linking

See http://rvelthuis.bei.t-online.de/articles/articles-cppobjs.htm

Note that FPC doesn't have negative VMT offsets due to GNU LD limitations.

The fundament of above C++ <-> OPas lies in COM interfaces: (quote from Rudy Velthuis)

"Well, all compilers must be able to create COM interfaces. Since in C++, these are simply pure abstract classes, and Delphi must have the same layout, for many reasons, they are all compatible. In fact, a pure abstract class pointer points to a structure of which the first entry is a VMT. This is also how interfaces are built"

Processor dependent

See also platform list.

i386

PIC information

PowerPC

PPC Calling conventions

Internal Linker

Internal Linker