This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: preprocessing java source
- To: "Anthony Green" <green at redhat dot com>
- Subject: Re: preprocessing java source
- From: Brian Jones <cbj at gnu dot org>
- Date: 23 Jun 2001 16:58:59 -0400
- Cc: "Java at Gcc dot Gnu. Org" <java at gcc dot gnu dot org>, <classpath at gnu dot org>
- References: <020b01c0fc19$bdd66420$5be6b4cd@cygnus.com>
"Anthony Green" <green@redhat.com> writes:
> I'd like to experiment with creating different runtime profiles,
> similar to the J2ME profiles for embedded systems.
>
> This will require different versions of some of the core classes (no
> floating point, no finalization, etc). I can just copy the .java
> files and maintain different versions -- but I'd rather just
> conditionally compile the code.
>
> I think the only preprocessing required will be to support...
>
> #ifdef USE_FINALIZATION
> #else
> #endif
>
> ...style preprocessing.
>
> I wouldn't be so worried if we didn't share code with Classpath.
>
> Any ideas/opinions?
I think it is okay to do this as long as it becomes supported within
the build structure of both projects. I'm not familiar enough with
the profiles structure you mention to comment on the technical merits
of this approach.
Brian
--
Brian Jones <cbj@gnu.org>