开发者

Compile Java without optimization?

I'm 开发者_Python百科working on some of the problems in Programming Pearls and I'd like to get a sense for the runtime of various programs in Java. However the optimizing compiler is making this difficult. Is there a way to run javac on a Mac without having the compiler make any optimizations?


@Andrew Thompson is correct, the JIT is the main source of optimizations with java.

To run java without the JIT:

 java -Xint ...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜