Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] small patches to facilitate native compilation of SWT (Chris McKillop)

> > Please not that in recent 3.0 builds we have made significant changes to 
> > the SWT JNI c code to allow us to generate the code automatically and to 
> > improve performance.  You may wish to have a look at what is in HEAD 
> > first.

I wouldn't want to suggest creating extra work for the overworked SWT team, but if
the code is generated automatically, maybe someone could help in creating a version
of the generator that is re-targetted from JNI to CNI. I would definitely be
willing to help, if I am able to get up to level on the issue.

CNI is way faster than JNI in GCJ, if only because methods don't need to be looked up
with ltdl. They are just linked natively.

Where can I find the current JNI generator?

Maybe an inventory of platform APIs, such as header files, could be used to generate
both Java and JNI/CNI C/C++ sources. It could be an amazing project in itself, to
create this collection cum generators, across the entire OS (win32 &
linux-kerneled) and its essential libraries?

-- 
http://www.freestyler-toolkit.org absolutely unique


Back to the top