Version number is bumped! Added --staticlib option to flx. This creates a static link library (archive) instead of an executable. The static link thunk and drivers aren't included. It is not possible today to make an archive of just C++ code, the base Felix program is archived too.
The static link library should be "identical" to the corresponding dynamic link library. This paves the way for statically linking plugins. We can link in the static archives to the executable and create a registry. Then we create (yet another) higher level abstraction over plugins that checks the registry before trying dynamic loading. To do this we will have to create a binding routine. This routine contains the names of the entry points of all the plugins to be statically linked, which will yank the code out of static link libraries into the exe. The routine then registers these entry points associated with a plugin. The registry is used to find the symbols which would otherwise by found on dynamic loading by dlsym(). The registry can also ensure a DLL isn't loaded twice, however that's probably useless since the OS is going to do that anyhow. Another tweak to "flx" should make it possible to process just C++ files without any Felix. This will make "flx" useful to C++ programmers even if they don't care about Felix. In particular it should provide "platform independent" compilation and linkage. With some special syntax like: //$$LINK: pkgname we can autolink required libraries transparently. [Auto inclusion of include files based on resource abstractions is easy to do but invasive] -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language