这是我运行以下命令时得到的输出摘录(40 只是斐波那契程序的一个参数):
java -XX:+UnlockDiagnosticVMOptions -XX:CompileCommand="print Fibonacci::fibonacci" Fibonacci 40
有人能解释一下每个数据的含义吗(我假设它的意思是字节数,例如,主代码需要 288 个字节)。还有各种类别是什么意思 - 重定位、存根代码、元数据、范围数据、范围 pcs、处理程序表等是什么意思?
...
Compiled method (c2) 93 16 4 Fibonacci::fibonacci (22 bytes)
total in heap [0xfff8000108113dd0,0xfff8000108114440] = 1648
relocation [0xfff8000108113f00,0xfff8000108113f48] = 72
main code [0xfff8000108113f60,0xfff8000108114080] = 288
stub code [0xfff8000108114080,0xfff80001081141e0] = 352
oops [0xfff80001081141e0,0xfff80001081141e8] = 8
metadata [0xfff80001081141e8,0xfff8000108114210] = 40
scopes data [0xfff8000108114210,0xfff8000108114298] = 136
scopes pcs [0xfff8000108114298,0xfff80001081143d8] = 320
dependencies [0xfff80001081143d8,0xfff80001081143e0] = 8
handler table [0xfff80001081143e0,0xfff8000108114440] = 96
----------------------------------------------------------------------
Fibonacci.fibonacci [0xfff8000108113f60, 0xfff80001081141e0] 640 bytes
[Entry Point]
[Verified Entry Point]
[Constants]
# {method} {0xfff80001036243b8} 'fibonacci' '(I)J' in 'Fibonacci'
# parm0: I0 = int
# [sp+0x90] (sp of caller)
...