Are there any optimizations, such as dead code elimination, involved when translating java source files to bytecodes?
Are there any optimizations, such as dead code elimination, involved when translating java source
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The standard Java compilers do few optimizations on the emitted bytecodes. I think that the reasoning is that unoptimized bytecodes will be easier for the HotSpot JIT compiler to optimize.
The links that @Mitch Wheat provided in comments above (particularly the 2nd one) date from the days when HotSpot JIT was new technology.