It is something I would like also.
However, Watcom C does not currently implement the loading of shared objects.
The only way for Linux TSE to work with shared objects is to get it
working with GNU C.
Good news on that front, is that with lots of help from Rick Hodgin,
we were able to get the macro compiler compiled with Microsoft C and
GNU C. So that is a first big step. Still have lots of verification
to do.
The editor can now be compiled with Microsoft C. A ways to go to get
it to compile with GNU C. Because of the FFI dependance on Borland C
extensions, which Microsoft C - and GNU C - do not have, the editor
immediately crashes :( But it is a big step in the right direction.
So still a long way to go, but at least some progress.
Interestingly, I have a POC that has an FFI that works with any C
compiler, but germain to the current topic, does not work with
floating point. It only works with char, short, int, long, long long,
and pointers.
At this point, I'm not sure which would be faster:
- quickly getting TSE compiling as a 64 bit app, and spending
months/years fixing all the bugs that go along with something like
that. Or
- rewrite it line by line. This will take a while, but may be faster
in the long run? Hard to know which one to do. I hope I live long
enough to do one or the other!
--
Sammy Mitchell