This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Applications
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: Applications
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Tue, 20 Mar 2001 17:41:10 +1200
- CC: "'Jeff Sturm'" <jsturm at one-point dot com>, Per Bothner <per at bothner dot com>, tromey at redhat dot com, Java Discuss List <java at gcc dot gnu dot org>
- References: <140D21516EC2D3119EE7009027876644049B5CDB@hplex1.hpl.hp.com>
"Boehm, Hans" wrote:
> Another small one that has helped me find some bugs in the past is the
> constructive reals calculator I wrote at SGI. (Now at
> http://www.hpl.hp.com/personal/Hans_Boehm/crcalc/ ) Both the included
> (small) test program and the command line version (added at HP) should build
> with gcj from .class files. Eventually they should build from sources. (I
> believe there were problems with inner classes in the past. I haven't tried
> very recently.)
FYI, it compiles fine from source, except for the CRCalc class (due to a few
missing AWT bits and incorrect complaints about finals which may just be a side
effect of the missing classes):
$ gcj com/sgi/math/*.java -O2 --main=rpn_calc
$
and seems to basically work:
$ ./a.out
2 3 +
5.00
9481923 223 /
42519.83
But the TestCR crashes. Seems it gets stuck in an infinate loop between these
two calls:
#11 0x08050f5d in
com.sgi.math.monotoneDerivative_UnaryCRFunction$monotoneDerivativeCR.monotoneDerivative_UnaryCRFunction$monotoneDerivativeCR(com.sgi.math.monotoneDerivative_UnaryCRFunction,
com.sgi.math.CR) (this=0x81c2078,
this$0=0x818eab0, x=0x80aeb58) at com/sgi/math/UnaryCRFunction.java:609
#12 0x0805185a in
com.sgi.math.monotoneDerivative_UnaryCRFunction.execute(com.sgi.math.CR)
(this=0x818eab0, x=0x80aeb58)
at com/sgi/math/UnaryCRFunction.java:655
gij runs it correctly on class files produced by javac, so there could be a
miscompilation somewhere...
regards
[ bryce ]