This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: preprocessing infrastructure
- To: green at cygnus dot com
- Subject: Re: Patch: preprocessing infrastructure
- From: Tom Tromey <tromey at redhat dot com>
- Date: 17 Jul 2001 18:57:10 -0600
- Cc: java-patches at gcc dot gnu dot org
- References: <200107010421.VAA30955@fencer.cygnus.com>
- Reply-To: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
I didn't see a reply to this. Most of this stuff has been gone over
already, but I'll just reiterate...
Anthony> This patch adds the build infrastructure to generate Java
Anthony> source files from preprocessed source (.jpp) files.
This can't work for cross builds. That's because fixlines must run on
the host, but there's no way to build a host program. :-(
Anthony> The C preprocessor is used for preprocessing. Comments are
Anthony> preserved in the output, and a new program (fixlines) adjusts
Anthony> the output so the .java file lines match up with the .jpp
Anthony> file lines.
I still dislike using cpp. The cpp hackers have said over and over
that using it is a mistake. And they've occasionally backed this up
by breaking things like Imake.
I think we could use an awk script instead of cpp to do the
preprocessing. This wouldn't even be very hard to implement.
Anthony> This infrastructure is required in order to generate
Anthony> different runtime profiles (specifically, smaller runtimes
Anthony> similar to the various J2ME profiles).
I think this is an important goal.
Whatever we do has to be synchronized with Classpath.
Tom