正在加载图片...
Problem 3.21(P194) struct prob A. what are the offsets of the intp following fields? struct int x sX next struct prob * next B how many total bytes does the structure require Sp-> S void sp_init(stry 1.moⅵ8(%ebp),%eaX sp>s.x=(&(>8x 2.moM8(%ea×),%edx sp-> p 3. movl %edx, 4(%eax) next s sp 4. leal 4(%eax), %edx 5. movl %edx, %eax 6.moⅵ%eax,12(%eax)Problem 3.21 (P194) struct prob{ int *p; struct{ int x; int y; }s; struct prob *next; }; void sp_init(struct prob *sp){ sp -> s.x = _____; sp -> p = _____; sp _> next = _____; } A. what are the offsets of the following fields? p: s.x: s.y: next: B. how many total bytes does the structure require? C. 1. movl 8(%ebp),%eax 2. movl 8(%eax),%edx 3. movl %edx,4(%eax) 4. leal 4(%eax),%edx 5. movl %edx,(%eax) 6. movl %eax,12(%eax) &(sp -> s.x) sp -> s.y sp
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有