Re: Endianness of Java Virtual Machine
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 17:56:44 GMT
On 31 Oct 2007 06:39:54 GMT, Andreas Leitgeb
<avl@xxxxxxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
Now comes the tricky part:
in the bytecode there exist instructions to convert the
intvalue to a byte/short-value, and you'd have to modify
the class file(*) to do some noop's instead of these
converting instructions. after that you run the code
again, and see if the result has changed.
Just want to clarify here. A careless reader might get the erroneous
idea the compiler generates different byte code depending on whether
the target were big on little endian. Definitely not so. The same byte
code is used on all platforms. The byte code does the same logical
thing on all platforms. It is just the JVM has different amounts of
work to implement each byte code on different platforms. Your trick
exploits this.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Endianness of Java Virtual Machine
- From: karthikbalaguru
- Re: Endianness of Java Virtual Machine
- From: Andreas Leitgeb
- Endianness of Java Virtual Machine
- Prev by Date: Re: Question: Simple GUI Updater Thread
- Next by Date: Re: [OT]
- Previous by thread: Re: Endianness of Java Virtual Machine
- Next by thread: Create an Object from an Array Class
- Index(es):
Relevant Pages
|