检查Java“装配”? [英] Checking Java "assembly"?

查看:94
本文介绍了检查Java“装配”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

是否可以查看Class文件的字节码?

我想在eclipse中编写一些Java,然后编译,然后查看最终的汇编语言,看看哪个代码编译成最少的指令。我认识到Java与C ++不同,但是可以从编译和比较中学习一些输出来检查最快的代码?

I wanted to write some Java in eclipse, compile and then look at the resultant "assembly language" to see which code compiles to the fewest "instructions". I realise Java is different to C++, but is it possible to study some output from the compilation and compare to check for fastest code?

推荐答案

p>你必须看看编译产生的字节码,存在一个eclipse插件(字节码大纲)可以让您直接在eclipse中查看字节码。

You have to look at the bytecode produced by the compilation, exist an eclipse plugin (Bytecode Outline) that let you view the bytecode directly in eclipse.

这篇关于检查Java“装配”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆