简体   繁体   中英

What does the `Stack=1, Locals=1, Args_size=1` Mean in Java Bytecode?

I made a simple class to learn how to read Java byte code. What does the line

Stack=1, Locals=1, Args_size=1

mean in the folloiwng code?

public Demo();
  Code:
   Stack=1, Locals=1, Args_size=1
   0:   aload_0
   1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
   4:   return
  LineNumberTable: 
   line 1: 0

这意味着您有一个参数(要初始化的对象)、一个局部变量(要初始化的对象)和堆栈中最多一个对象(要初始化的对象)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM