Bryce McKinlay <[EMAIL PROTECTED]> writes:
> > Thomas Kuhn wrote:
> >
> > since the runtime library for GCJ (the Java-frontend for GCC) has no support
> > for AWT, I think about porting the AWT-package of Classpath to that compiler.
> > Well, do you think it is possible to port those Parts from JNI to CNI and to
> > extract the AWT-Parts from the package (and use them without the other
> > Packages ?)
>
> There was a post about this on the libgcj list today. I think porting
> CLASSPATH's native peers to CNI could be done fairly easily. It would be an
> interesting project and I've been hoping to find the time to work on this for a
> while.
>
> Personally, I really like CNI, and I think that AWT peers written with CNI will
> be cleaner and possibly faster than the JNI implementation.
>
> That said, I also agree that libgcj needs to get closer to classpath, and
> perhaps it would be nice if classpath could support gcj 'out of the box'.
> libgcj's coverage of the APIs is currently very small and I don't see that
> changing much without using classpath code.
>
> [Incidently, native method dispatch with gcj/CNI is more than 6X faster than JNI
> on the IBM Linux JDK. Interface calls, which I think should also important for a
> fast AWT, should also be very competitive once my changes for constant-time
> interface dispatch are checked in.]
>
One of my tasks which is on the back burner of a stove I don't own in
a dump a hundred miles away is to look at CNI and determine how might
be the easiest method to get Classpath to work with it. If I read the
above messages correctly this means I should think in terms of either
providing #ifdef'ing all the native code or writing some portability
layer?
I'm currently entranced with writing all sort of crazy image filters
though in order to finish up java.awt.image. After I'm done with that
I hope Kaffe will pick up what they're lacking out of there to improve
their class library. I should be able to finish that package up this
month. I spent the past weekend working night and day for 'da man'
which has held me back a week.
Brian
--
Brian Jones <[EMAIL PROTECTED]>