This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CNI for C


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]