This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
fixed point math?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 26 Jun 2003 17:12:14 -0700
- Subject: fixed point math?
- Organization: Myself
Hey, sorry I haven't been around much recently...
Does anybody know if there's a quick, easy way to compile a program
that uses lots of float's so that the floats are represented as
fixed-point values? An added bonus would be continuing to generate
floating point ops for double's, but that's not a requirement.
The only idea I've come up with is rewriting libfloat and using
-msoft-float. Is there an easier or cleaner way?
In theory it should be possible to write a tool that takes java
bytecode and rewrites all the float ops to fixpoint ops and then
re-emits the bytecode... that would be (by far) the coolest solution,
but I doubt that anybody's done that.
- a