[Sablevm-developer] lt_dlopen(NULL) dependency eliminated
Brought to you by:
egagnon
From: Etienne G. <gag...@uq...> - 2004-05-01 21:42:46
|
Hi all. I have checked in staging my adaptation of Melanie's code to eliminate dependencies on a working lt_dlopen(NULL)/lt_dlsym() pair. Hopefully, this change will greatly simplify porting SableVM to new platforms. Why not a "real Windows" port, soon, using Microsoft compiler? In order for this code to work, it is *imperative* that all internal native methods (e.g. Java_*) to be defined as: JNIEXPORT ... Java_... (...) { ... Where "Java_" starts on the first character of a line, and the "(" of formal parameters is on the same line. If you do not follow this requirement, you method won't be found at runtime... You've been warned;-) Anyway, this should be true of *all* functions in SableVM. You're welcome to fix any function that does not abide by this rule. :-) Etienne -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |