This is the mail archive of the java@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]
Other format: [Raw text]

fixed point math?


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


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