public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17831] New: GCJ/CNI should be usable without 'gcjh'
@ 2004-10-04 23:36 csm at gnu dot org
2004-10-04 23:39 ` [Bug java/17831] " pinskia at gcc dot gnu dot org
2004-10-07 1:11 ` csm at gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: csm at gnu dot org @ 2004-10-04 23:36 UTC (permalink / raw)
To: gcc-bugs
A nice enhancement to GCJ would be to remove the need to invoke 'gcjh' on
compliled classes before compiling CNI C++ source. Extending this to JNI code
would be nice, too, but potentially harder.
That is, the following command line should work:
$ gcj -shared -o lib-foo.so foo.java foo.cc
Or, even this exact sequence:
$ gcj -c -o foo.o foo.java
$ gcj -c -o foo-cni.o foo.cc
$ gcj -shared -o lib-foo.so foo.o foo-cni.o
In theory this should be possible, since everything you need to compile to
'lib-foo.so' is present in those two files. But in practice, of course, this
touches potentially everything from g++ to cpp, and becomes pretty hairy indeed.
Maybe a good way to do this would be to extend cpp so front-ends can register
hooks to the include-lookups, so gcj could, for example, intercept certain
#includes to produce CNI headers on-the-fly.
Also, gcj/gcjh should be able to generate CNI/JNI headers from java source. gcjx
can (will be able to) do this, for example.
--
Summary: GCJ/CNI should be usable without 'gcjh'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: csm at gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17831
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/17831] GCJ/CNI should be usable without 'gcjh'
2004-10-04 23:36 [Bug java/17831] New: GCJ/CNI should be usable without 'gcjh' csm at gnu dot org
@ 2004-10-04 23:39 ` pinskia at gcc dot gnu dot org
2004-10-07 1:11 ` csm at gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-04 23:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-04 23:38 -------
Well the easy way to do this is to create the headers while compiling, aka combine gcj and gcjh like gcjx
does.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-04 23:38:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17831
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/17831] GCJ/CNI should be usable without 'gcjh'
2004-10-04 23:36 [Bug java/17831] New: GCJ/CNI should be usable without 'gcjh' csm at gnu dot org
2004-10-04 23:39 ` [Bug java/17831] " pinskia at gcc dot gnu dot org
@ 2004-10-07 1:11 ` csm at gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: csm at gnu dot org @ 2004-10-07 1:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From csm at gnu dot org 2004-10-07 01:11 -------
Yes, but gcj doesn't have this feature currently, and gcjh only works with
bytecode. In the least it should work with java source, too.
In my opinion being able to generate CNI headers along with the compilation step
would be invaluable in itself.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17831
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-07 1:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 23:36 [Bug java/17831] New: GCJ/CNI should be usable without 'gcjh' csm at gnu dot org
2004-10-04 23:39 ` [Bug java/17831] " pinskia at gcc dot gnu dot org
2004-10-07 1:11 ` csm at gnu dot org
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).