This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Properties
- To: tromey@cygnus.com
- Subject: Re: Properties
- From: Anthony Green <green@cygnus.com>
- Date: Sun, 12 Sep 1999 22:36:56 -0700 (PDT)
- CC: jsturm@sigma6.com, java-discuss@sourceware.cygnus.com
Jeff wrote:
> gcjrun -Dsomeproperty=somevalue -mx32m myapp.so MyApplication
Tom wrote:
> If the class loader could load .so's, then we could just use gij for
> this.
Cool - yes, exactly! We could make this work.
Tom continues:
> One other idea is to have -D options to gcj (at link time -- which is
> a bit weird, but since we already sometimes require -L at compile time
> it isn't out of the question) be compiled in to the resulting
> executable. This could easily be done by passing them down to
> jvgenmain.
This is also a good idea. jvgenmain could use these values to set up
non-empty .gcj_property and .gcj_property_info sections, so it doesn't
always have to be an extra step.
Getting this to work would help clean up some of our linker script
hacks for embedded targets (default thread stack size, for instance).
If we use jvgenmain for this, we'll have to make sure it can deal with
-D options in the absence of --main, because I know some folks have
hand written main()'s.
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California