[fpc-devel] resource support rework

Marco van de Voort marcov at stack.nl
Tue Aug 12 09:24:53 CEST 2008


> Marco van de Voort ha scritto:
> > - both dll and mainapp have own rtl.
> > - and thus need resources.
> > - Linux and FreeBSD only have flat linker space ->clash?
> 
> The idea is to be able to generate resource-only shared objects (without 
> any code, I made a proof of concept some time ago and at least for ELF 
> it works), so that programs can load resources from different dlls.

Ok, but that is something else, since then those shared objects have no
FPC code, and thus no RTL state.

> For dynamic libraries containing resources, maybe the "dll rtl" can not 
> make use of it and let the main program use it (resources in DLLs are 
> always searched with dlopen/dlsym, so it will be the same, from the main 
> program point of view, if resources are in a resource-only dll or not). 
> This of course until we have packages working.

Dealing with these issues is more or less the backbone of packages support.

The rest is pretty much only glueing together on the Pascal (unit) level,
and a lot of administration in the compiler.




More information about the fpc-devel mailing list