Re: ffi library port to Windows
Enrico Migliore <[email protected]> Fri, 02 Jun 2006 09:08:18 +0200
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Hi Etienne,
for the sake of completeness, I was trying all tests included here:
~/sablevm/trunk/src/libffi/testsuite/libffi.call
I will now focus my attention on the types you listed.
Enrico
>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:
>>...
>>
>>
>
>
>