Re: ffi library port to Windows
Etienne Gagnon <[email protected]> Thu, 01 Jun 2006 13:53:58 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0956563566== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3EE5CCF05236CB3A527209CD" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3EE5CCF05236CB3A527209CD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Enrico, Why are you trying to pass structs around? SableVM doesn't need this functionality. All SableVM needs is to be able to pass around JNI types, namely: jboolean jbyte jchar jshort jint jlong jfloat jdouble void * (i.e. pointer/reference type) The preparation happens in _svmf_prepare_native_method_args() in src/libsablevm/native.c. In other words, only the following ffi types are needed: ffi_type_uint8 (jboolean) ffi_type_sint8 (jbyte) ffi_type_uint16 (jchar) ffi_type_sint16 (jshort) ffi_type_sint32 (jint) ffi_type_sint64 (jlong) ffi_type_float32 (jfloat) ffi_type_float64 (jdouble) ffi_type_pointer (void *) That's all we need. So, we don't care if the rest doesn't work. :-) Etienne Enrico Migliore wrote: > I'm facing problems when I run the tests that involves structures as > formal parameters, as shown here: > ... -- Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ --------------enig3EE5CCF05236CB3A527209CD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEfym2jyrJi4rH84gRAjJAAKCBvAoe0lkg0TeQxkNssQS+yo4b9wCfXydB UXNOh3Wyhf+iwoFRqKh9HG8= =KX46 -----END PGP SIGNATURE----- --------------enig3EE5CCF05236CB3A527209CD-- --===============0956563566== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SableVM-user mailing list [email protected] http://sablevm.org/lists/control/listinfo/sablevm-user --===============0956563566==--