[fpc-pascal] simpleIPC for all programming languages ?
Michael Van Canneyt
michael at freepascal.org
Mon May 8 09:11:43 CEST 2017
On Sun, 7 May 2017, noreply at z505.com wrote:
>
> Then some small questions arise: is it possible to statically link fpc
> code into other programs rather than it being a DLL? for example .a
> files instead of a dll at runtime? Then theoretically, IPC could be
> linked in statically, not just as a dll.
In theory, yes. In practice: No. It needs a lot of compiler magic things, a
correctly initialized RTL etc. This is not needed for a DLL, which is more
like an .exe in this regard.
>
> Indeed the dll functions will need to be flattened out (non object
> oriented) so all languages can use IPC, but that's not a problem for me
> - simply I write some wrappers around SimpleIPC objects and make them
> plain C/pascal like procedures, which is not so hard.
This is not a problem.
Michael.
More information about the fpc-pascal
mailing list