Ive been thinking about writing Java bytecodes directly (using one of the Java assemblers out there) and just want to ask if anyone knows whether this will work:
Can I push a float value onto the stack, and then pop it off & use it as an int?
Does the VM ever check this sort of thing?
If it works, then there are a few sneaky optimisations I can make for a few maths functions (sqrt in particular) as well as doubling the speed of my 3D vertex transform & clip. (& I would definately like an inline bytecode assembler in the java compiler if you can!)
- Dom