public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Bernd Kreimeier <bk@lokigames.com>
Cc: java-discuss@sourceware.cygnus.com, classpath@gnu.org
Subject: Re: Proposal for CNI/JNI problems
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <m2aem6ixh0.fsf@magnus.bothner.com> (raw)
In-Reply-To: <14465.8056.983245.57682@ares.lokigames-lan.com>

Bernd Kreimeier <bk@lokigames.com> writes:

> I know that's the current proposal. Why is CNI-to-JNI C conversion
> out of the question?

You need to analyze CNI (i.e. C++) source code.  You need to recognize
CNI field and method references, which are just C++ field/method
references.  That implies a semantic analysis of the C++ code.  The
logical tool is a compiler. The only C++ compiler we have available is
G++. It does not emit C source.  Adding an option to emit C is a major
project. It is even worse if you want human-readable C.

What you can do is convert annotated-CNI to JNI C.  That loses some
of the simplicity of CNI, but may be worth considering.  However,
that is a quite different idea.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

  reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 Paul Fisher
2000-04-01  0:00 ` Per Bothner
2000-04-01  0:00   ` Jochen Hoenicke
2000-04-01  0:00     ` Per Bothner
2000-04-01  0:00     ` Stuart Ballard
2000-04-01  0:00     ` Jon Olson
2000-04-01  0:00   ` Bernd Kreimeier
2000-04-01  0:00     ` Per Bothner
2000-04-01  0:00       ` Bernd Kreimeier
2000-04-01  0:00         ` Per Bothner
2000-04-01  0:00           ` Bernd Kreimeier
2000-04-01  0:00             ` Per Bothner [this message]
2000-04-01  0:00               ` Bernd Kreimeier
2000-04-01  0:00                 ` Per Bothner
2000-04-01  0:00                   ` Alexandre Oliva
2000-04-01  0:00                   ` Bernd Kreimeier
2000-04-01  0:00   ` Paul Fisher
2000-04-01  0:00     ` Aaron M. Renn
2000-04-01  0:00       ` Stuart Ballard
2000-04-01  0:00         ` Chris Blizzard
2000-04-01  0:00           ` Chris Blizzard
2000-04-01  0:00     ` Per Bothner
  -- strict thread matches above, loose matches on Subject: below --
2000-04-01  0:00 David Pettersson
2000-04-01  0:00 ` Per Bothner
2000-04-01  0:00 Boehm, Hans
2000-04-01  0:00 Lam.Mark
2000-04-01  0:00 ` Aaron M. Renn
2000-04-01  0:00   ` Brian Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2aem6ixh0.fsf@magnus.bothner.com \
    --to=per@bothner.com \
    --cc=bk@lokigames.com \
    --cc=classpath@gnu.org \
    --cc=java-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).