as titles says ,
i’d to take optimizations off because i want to create a bytecode ,class file, that will be an input to other program. This class file will be used for testing the program , and is assumed to be unoptimized.
thanks,
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.
As far as I can tell, there is only one (potential) compiler optimizations to turn off. That is the optimization that inlines the JSRs used by older compilers to reduce code size for
finallyclauses. And this is only a potential optimization to turn off … because for later JVMs the optimization is mandatory.See this link for details.
Apart from that, there are no bytecode optimizations that you can turn off. But don’t worry … most of the serious optimizations are performed by the JIT compiler.