Release 1 of both Zerich 1a and 1b is available for immediate download at
<URL:http://www.jos.org/redist/mirror>

Zerich is an ERIC sub-project. These classes were compiled first on
Windows. Now that I found /usr/include/dlfcn.h, I have been able to compile
these classes on Linux, too. The point of this project is to use the
SharedLibrary class throughout platform-independent C/C++ code, even though
shared libraries are implemented differently on Linux and Windows.

SharedLibrary is integrated into the C++ environment, so you can write code
like this:

  void example() {
    SharedLibrary a = "jvm";
    SharedLibrary b = a;

    void (*decaf_main)( int argc, char *argv[], kernel *k );
    decaf_main = a.getMethod( "decaf_main" );
  }

NativeLibrary is a pure virtual class, like an interface, for a native
library. SharedLibrary is an integrated wrapper for NativeLibrary.

The purpose is clear. I want a NativeLibrary that only a native library
factory can instantiate. At the same time, I want a SharedLibrary that is
fully integrated into the C/C++ environment.

The critical part for a virtual machine, like decaf, is to implement the
native library factory. Note: Linux returns a symbol, not a method.


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to