P
Paul Lutus
Mohd said:Paul Lutus <[email protected]> wrote:
/ ...
All variables are located in the large array of int. As a result of
register allocation several of the variables end up cached in Java native
variables of int type or float type.
Please explain how you have used "register allocation" to circumvent Java's
strong data typing. Or are you talking about native code called by Java?
But, their home locations are always
in the large array of int. And again, unions and structs are supported.
Show us the bytecode that overlays a Java float and a Java integer into the
same memory space. That is what a union is. Show us the Java bytecode that
allows one to manipulate individual bits of a Java float datatype, as a C
union allows.
If you use the obvious approach of translating the float using
Float.floatToIntBits() and the reverse method, it wil be interesting to se
how you handle simultanous changes to both forms. In any case, it is not a
union. Java doesn't allow this.