Open freylax opened 4 years ago
Using zephirs dead code elimination I was able to link in only the modules and ffi's which are truely needed. This allowes for a gradual completion of the ffi's for the shared library and having the gurantee that the neede ffi's which are used by the executable are actually all in there. [https://github.com/freylax/purescript-native-build]()
I propose to use extern "C" functions for all exposed functions.This makes it possible to use them in shared libraries and shared object files. This solves two issues which could not be addressed with the current c++ functions:
27
A runnig example can be found here: hello world which is implemented by changed the pscpp pscpp and ported the ffi functions for the standard library to the C function interface ffi I just used Linux, so no effort was made to make it work on other platforms. I apreciate your comments and wish you a mery christmas.