[fpc-devel] Planning to experiment with FPC extentions

Jonas Maebe jonas at freepascal.org
Wed Aug 26 20:37:22 CEST 2020

On 26/08/2020 02:57, Boian Mitov via fpc-devel wrote:
> I have been planning for long time to try to add support for advanced
> RTTI to FPC, but never had the chance to work on it.
> I don’t even know how to start. Is there any information on how to setup
> for recompiling the compiler sources and even where the sources and the
> project files for the compiler are?
> Can someone help me setup so I can start to study the code and see how I
> can start working on it?

The RTTI generation is in ncgrtti.pas. It makes use of the typed const
builder, which is one of the few parts of the compiler that's
documented: https://wiki.freepascal.org/Generating_initialised_data
(although that documentation hasn't been updated in quite a while, so it
may be a bit out of date).


More information about the fpc-devel mailing list