This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: preprocessing infrastructure


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]