由反汇编代码确定结构体的完整声明
C程序中遇到下面的代码
typedef struct {int left;a_struct a[CNT];int right;
} b_struct;void test( int i, b_struct *bp)
{int n=bp->left+bp->right;a_struct *ap=&bp->a[i];ap->x[ap->idx]=n;
}
下面是test函数的反汇编代码
结合C程序中的代码与test函数的反汇编代码分析
typedef struct {
int idx;
int x[4];
} a_struct;CNT=9;