[fpc-pascal] Duplicate RTLs

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jul 1 16:20:47 CEST 2015

Adriaan van Os wrote on Wed, 01 Jul 2015:

> Jonas Maebe wrote:
>> This is currently quite hard with FPC, as every library compiled  
>> with FPC contains its own RTL and hence does not share the RTL  
>> state with the applications that use it. To solve that, you need  
>> Delphi-style dynamic packages support, which Sven is working on.
> Where is sharing-the-RTL-state an issue ?

The main ones will be allocating/freeing memory unless you use  
cmem/sharemem (including passing around reference counted types),  
exception catching (your program's exception class won't be related to  
the library's exception class), anything involving global variables  
(either implementation or interface) in units that exist both in the  
library and in the program.


More information about the fpc-pascal mailing list