java字节码astore_1和astore_2有什么区别 [英] What's the difference between java bytecode astore_1 and astore_2

查看:923
本文介绍了java字节码astore_1和astore_2有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

java字节码 astore_1 astore_2 有什么区别?

What's the difference between java bytecode astore_1 and astore_2 ?

推荐答案

说明 astore_n ,对于 n 的较小值,只是的缩写形式。两种版本都将堆栈顶部的内容存储到局部变量 n 中。

The instructions astore_n, for small values of n, are just shorthand equivalents for astore n. Either version stores what's on top of the stack into local variable n.

这篇关于java字节码astore_1和astore_2有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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