Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.machine > #43
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.machine |
| Subject | Re: Code Transformations that JVM applies |
| Date | 2011-02-10 22:30 -0800 |
| Organization | Canadian Mind Products |
| Message-ID | <fjl9l694fq7qbbg0gom0nri2g3r2o6cpb0@4ax.com> (permalink) |
| References | <f2606e27-2b26-4098-b463-c04f39e738da@q2g2000pre.googlegroups.com> |
On Tue, 8 Feb 2011 19:14:43 -0800 (PST), Ripunjay Tripathi <ripunjay.tripathi@gmail.com> wrote, quoted or indirectly quoted someone who said : >I am new to java and need help in understanding what kind of >transformation can they be ? Java was designed to give the JVM considerable freedom, so long as the net effect is the same. Java avoids constructs like struct overlays that inhibit optimisation. Examples of things it can do: 1. store strings in 8, 16 or compressed format or a mixture 2. use 32 or 64 bit addresses. 3. store bits packed in various ways 4. numbers can be stored big or little ended. 5. inline methods 6. standard optimisations you would do in a C compiler. 7. optimise the true size of StringBuilders, ArrayLists etc. 8. monitor interpreted code running to gather stats to optimise the machine code generated. -- Roedy Green Canadian Mind Products http://mindprod.com Your top priority should be fixing bugs. If you carry on development, you are just creating more places you will have to search for them.
Back to comp.lang.java.machine | Previous | Next | Find similar
Re: Code Transformations that JVM applies Roedy Green <see_website@mindprod.com.invalid> - 2011-02-10 22:30 -0800
csiph-web