[Lazarus] Strange Behaviour of TBits

Julien Devillers jdevillers at opti-time.com
Thu Oct 14 11:23:51 CEST 2010


Bo Berglund schrieb:

> Or is it possible to load the FPC compiler project into Lazarus and
> build it from there???

Not really. There exist some Lazarus projects (pp*.lpi), but these exist 
primarily for debugging the compiler. You have to select the project for 
the desired target CPU, and to specify the desired target OS. Installing 
an new compiler requires more steps, i.e. compiler bootstrap and RTL 
rebuild.

In the compiler bootstrap the new compiler is compiled by the old 
compiler. Then the new compiler is recompiled repeatedly by itself, 
until the resulting executables are binary identical.

There exist two Makefiles, in the FPC and FPC/compiler folders. The 
global one bootstraps the compiler for the current architecture, then 
rebuilds the RTL (typical usage: make clean all). When everything is 
okay, "make install --INSTALL_PREFIX <where>" will install (copy) the 
new compiler and RTL into the given directory; from memory, please 
lookup the correct invocation. The compiler/Makefile builds cross 
compilers for all targets (typical usage: make fullcycle).

DoDi





More information about the Lazarus mailing list