[fpc-devel] Packages, Generics

Sven Barth pascaldragon at googlemail.com
Tue Sep 14 21:33:58 CEST 2010

Am 14.09.2010 01:26, schrieb Willibald Krenn:
> [lots of useful information snipped]
>> - The ability to import/export functions, procedures AND variables
>> from binaries (although export from shared library only should be
>> sufficient). This works on Windows, but on Linux I had problems.
> Packages also export/import RTTI, ClassVars, types, all the
> initialization/finalization code for each unit
> (@Packageunit1 at initialization$qqrv ..), compiler magic functions, and
> some other stuff like
> @Package1 at initialization$qqrv
> @Package1@@PackageUnload$qqrv
> @Package1@@PackageLoad$qqrv
> @Package1@@GetPackageInfoTable$qqrv
> Finalize
> Initialize
> @GetPackageInfoTable

Bascially everything that a Package exports is either a 
function/procedure or a variable. But currently the package code of FPC 
only exports functions and procedures, but no variables, so you miss the 
important variables of the RTL which are needed to generate a working 
package version of the RTL.


More information about the fpc-devel mailing list