RE: [Sablevm-user] bug report -- cannot run 'HelloWorld' test
Brought to you by:
egagnon
From: Purtell, A. <And...@NA...> - 2000-07-28 00:34:05
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Let me explain my interest in SableVM: I have been looking at the OpenJIT project recently (see http://www.openjit.org). Essentially, OpenJIT allows the majority of the JIT to be implemented as Java classes, which lends itself to a number of useful things such as runtime extension and specialization. The current OpenJIT prototype runs on a modified Sun classic JVM. I'm looking to "port" (read further) OpenJIT to an unencumbered JVM. Since SableVM is GPLed, this is perfect. OpenJIT itself is not GPLed, so this work would be a bottom-up reimplementation, anyway. About how far away from running HelloWorld is SableVM? More importantly, is this something that fits into the design of SableVM? E.g. there would need to be a few hooks in the interpreter to support a JIT, especially a self-bootstrapping one. Just for purposes of example, this could be something as simple as: /* invoke method code */ (*obj->method->invoke)(args); where normally 'invoke' points to 'int interpret_method (...)', but once a native method has been compiled, this pointer would be changed to 'int native_method (void * code, ...)'. Also, the JIT would need to store some per-method state, presumably hanging off a 'void * jit_priv' member in the appropriate struct. Etc. Andrew Purtell NAI Labs at Network Associates, Inc. Los Angeles, CA PGP Fingerprint: 5A21 10DB 92B0 CE20 80B4 90D7 A89C D464 AA0A A616 The difference between theory and practice in practice is larger than the difference between theory and practice in theory. -- Steve Crocker -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.1 Comment: Crypto Provided by Network Associates <http://www.nai.com> iQA/AwUBOYDUi6ic1GSqCqYWEQJ7bgCeN6JlKekXyIroeQ2K/NFkjpz73coAoJFM DAsCBcBz1SsN9QOJB8rnfdfJ =cM+V -----END PGP SIGNATURE----- |