private static int sum(int a, int b) { return a+b; } .method private static sum(II)I .locals 4 #表示需要申请4个本地寄存器 .parameter .parameter #这里表示有两个参数 .prologue .line 27 move v0, p0 .local v0, a:I move v1, p1 .local v1, b:I move v2, v0 move v3, v1 add-int/2addr v2, v3 move v0, v2 .end local v0 #a:I return v0 .end method
转载于:https://www.cnblogs.com/CnKker/p/11125193.html