From ranjithproxy at gmail.com Mon Feb 8 22:24:33 2010 From: ranjithproxy at gmail.com (ranjith kumar) Date: Tue, 9 Feb 2010 11:54:33 +0530 Subject: how to see machine code produced by jam Message-ID: <31cff80d1002082224k176e171coa0adfd7d4c2ea8df@mail.gmail.com> hi, 1)how to see machine code produced by java virtual machine? 2)Is there any option available to produce machine code(executable) from java code? (so that I can run that executable without running java virtual machine) 3) are java compiler /java virtual machine doing inter class optimizations? For example: class one { int fun1() { return 1111; } } class two() { one ONE; void print() { int tmp; tmp=10+(ONE.fun1()); System.out.println("temp=" + temp); } } My question is when machine code is generated for print() function, will there be a call to ONE.fun1() or compiler/interpreter optimizes it to tmp=10+1111 ???? Thanks in advance. From forax at univ-mlv.fr Tue Feb 9 03:29:13 2010 From: forax at univ-mlv.fr (=?ISO-8859-1?Q?R=E9mi_Forax?=) Date: Tue, 09 Feb 2010 12:29:13 +0100 Subject: how to see machine code produced by jam In-Reply-To: <31cff80d1002082224k176e171coa0adfd7d4c2ea8df@mail.gmail.com> References: <31cff80d1002082224k176e171coa0adfd7d4c2ea8df@mail.gmail.com> Message-ID: <4B714709.5070302@univ-mlv.fr> Le 09/02/2010 07:24, ranjith kumar a ?crit : > hi, > These questions are off topic, anyway. > 1)how to see machine code produced by java virtual machine? > You need a recent jdk7 and download a plugin: http://wikis.sun.com/display/HotSpotInternals/PrintAssembly#PrintAssembly-PluginImplementations > 2)Is there any option available to produce machine code(executable) > from java code? > (so that I can run that executable without running java virtual machine) > > 3) are java compiler /java virtual machine doing inter class optimizations? > All desktop VMs does that. > Thanks in advance. > Remi From ranjithproxy at gmail.com Wed Feb 10 04:32:29 2010 From: ranjithproxy at gmail.com (ranjith kumar) Date: Wed, 10 Feb 2010 18:02:29 +0530 Subject: optimizations done by javac and jvm Message-ID: <31cff80d1002100432l14a0431q2267c6e58f69d315@mail.gmail.com> hi 1) where can I find list of optimizations done by javac(java compiler) and jvm(java virtual machine) Any links please. 2) Any class file compiled by javac can be run by kvm(virtual machine for J2ME technology)?? What my observation is that same .class file run by jvm on x86 is faster than the run by kvm on x86(with same memory....etc). What my goal is to move the optimizations done by jvm to javac, so that optimized .class file is produced and will be run quickly by kvm. thanks. From ravenex at qq.com Sun Feb 21 21:25:19 2010 From: ravenex at qq.com (=?ISO-8859-1?B?cmF2ZW5leA==?=) Date: Mon, 22 Feb 2010 13:25:19 +0800 Subject: about the compiler-grammar project page Message-ID: Hello all, The compiler-grammar project page (http://openjdk.java.net/projects/compiler-grammar/) says: > The parser that is currently in the javac compiler is a hand-written LALR parser. which is not true. The current version of javac is a hand-written recursive descent parser, augmented with operator precedence parsing for binary expressions. I'd like to suggest updating this page to reflect this fact. Regards, Raven -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/compiler-grammar-dev/attachments/20100222/3a45a0dc/attachment.html