CNI for C

Geert Bevin gbevin@uwyn.com
Wed Apr 7 12:21:00 GMT 2004


On Wed, 2004年04月07日 at 14:13, Andrew Haley wrote:
> Well, the nice thing about pinvoke as far as I can see is that you
> don't have to write anything: you can just call native DLLs directly.
> It's harder to do this in the general case of ISO C, because there
> aren't necessarily Java equivalents of the C types used to access
> DLLs. However, in many cases, and this possibly includes all the
> platforms we care about, there are.

Since Mono pulls it off with standard C, it should be possible.
> So, we could do something like pinvoke in gcj. We'd need to figure

That would actually be the ideal solution for this problem.
> out how to parse the C types and make them available to Java. We
> could get the C compiler to help with this.

-- 
Geert Bevin Uwyn bvba
"Use what you need" Rue Victor Cuvelier 57
http://www.uwyn.com 7190 Ecaussinnes
gbevin[remove] at uwyn dot com Tel +32 67 78 04 06
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /