2 University of Electronic Science Technology of China(UESTC) ☐Case4 int static variable=5; void f register int i1,i2,i3,i4,i5,i6,i7,i8,i9,i10; register char *c1,*c2,*c3,*c4,*c5, *c6*c7,*c8*c9,*c10 extern inta very long_name; double dbl Real-Time Systems Lab LIAO Yong
2 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 int static_variable=5; void f() { register int i1,i2,i3,i4,i5,i6,i7,i8,i9,i10; register char *c1, *c2, *c3, *c4, *c5, *c6, *c7, *c8, *c9, *c10, extern inta_very_long_name; double dbl;
3 University of Electronic Science Technology of China(UESTC) ☐Case4 int funcret_int(); double func_ret_double(); char *func ret_char ptro i1=1i2=2:i3=3:i4=4i5=5i6=6 i7=74i8=8i9=9i10=10片 c1=(char *)110:c2=(char *)120 c3=(char*)130c4=(char*)140: c5=(char*)150:c6=(char*)160片 c7=(char *)170:c8=(char *)180 c9=(char *)190 c10=(char*)2005 Real-Time Systems Lab LIAO Yong
3 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 int func_ret_int(); double func_ret_double(); char *func_ret_char_ptr(); i1=1;i2=2;i3=3;i4=4;i5=5;i6=6; i7=7;i8=8;i9=9;i10=10; c1=(char *)110; c2=(char *)120; c3=(char *)130; c4=(char *)140; c5=(char *)150; c6=(char *)160; c7=(char *)170; c8=(char *)180; c9=(char *)190; c10=(char *)200;
University of Electronic Science Technology of China(UESTC) Case4 int a very long_name=1; i2=intfunc_ret_int(10,i1,i10); dbl=func_ret_double; c1=func ret_char_ptr(c1) int func ret_int(int a,int b,register int c) int dh d=b-6; return a+b+ci Real-Time Systems Lab LIAO Yong
4 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 int a_very_long_name=1; i2=intfunc_ret_int(10, i1, i10); dbl=func_ret_double(); c1= func_ret_char_ptr(c1); } int func_ret_int(int a,int b, register int c) { int d; d=b-6; return a+b+c;} ……
5 University of Electronic Science Technology of China(UESTC) Case 4 int static variable=5 ,data .enen .global static variable static variable .long 5 Real-Time Systems Lab LIAO Yong
5 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 int static_variable=5; .data .enen .global _static_variable _static_variable .long 5
6 University of Electronic Science Technology of China(UESTC) Case 4 void f() register int i1,i2,i3,i4,i5,i6,i7,i8,i9,i10: register char *c1,*c2,*c3,*c4,*c5, *c6*c7*c8*c9*c10 extern inta_verylong_name; double dbl: intfunc ret_int; double func ret_double char *func ret char ptro Real-Time Systems Lab LIAO Yong
6 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 void f() { register int i1,i2,i3,i4,i5,i6,i7,i8,i9,i10; register char *c1, *c2, *c3, *c4, *c5, *c6, *c7, *c8, *c9, *c10, extern inta_very_long_name; double dbl; intfunc_ret_int(); double func_ret_double(); char *func_ret_char_ptr();
7 University of Electronic Science Technology of China(UESTC) ☐Case4 .text .global f -f link a6#-88 Moveml #0x3cfc,sp@ Real-Time Systems Lab LIAO Yong
7 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 .text .global _f -f link a6,#-88 Moveml #0x3cfc,sp@
8 University of Electronic Science Technology of China(UESTC) ☐Case4 i1=1i2=2;3=3:14=4I5=5i6=6 i7=74i8=8i9=9%i10=10明 c1=(char*)110片c2=(char*)120所 c3=(char *)130:c4=(char *)140 c5=(char *)150 c6=(char *)160 c7=(char *)170; c8=(char *)180; c9=(char*)190 c10=(char*)200 moveg #1d7 moveg #2d6 Real-Time Systems Lab LIAO Yong
8 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 i1=1; i2=2; i3=3; i4=4;I 5=5; i6=6; i7=7; i8=8; i9=9; i10=10; c1=(char *)110; c2=(char *)120; c3=(char *)130; c4=(char *)140; c5=(char *)150; c6=(char *)160; c7=(char *)170; c8=(char *)180; c9=(char *)190; c10=(char *)200; moveq #1, d7 moveq #2, d6
9 University of Electronic Science Technology of China(UESTC) ☐Case4 moveg 并1, d7 moveg moveg #3, moveg # moveg # moveg #6, d2 movl #7,a6@(-4) movl #8a6@(-8) mov/ #9,a6@(-12) movl #10a6@(-16) Real-Time Systems Lab LIAO Yong
9 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 moveq #1, d7 moveq #2, d6 moveq #3, d5 moveq #4, d4 moveq #5, d3 moveq #6, d2 movl #7, a6@(-4) movl #8, a6@(-8) movl #9, a6@(-12) movl #10, a6@(-16)
10 University of Electronic Science Technology of China(UESTC) ■Case4 mov/ #110 a5 movl #120a4 movl #130a3 movl #140,a2 movl #150, a6@(-20) mov/ #160 a6@-24) movl #170,a6@(-28) movl #180a6@(-32) movl #190,a6@(-36) movl #200,a6@(-40) Real-Time Systems Lab LIAO Yong
10 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 movl #110, a5 movl #120, a4 movl #130, a3 movl #140, a2 movl #150, a6@(-20) movl #160, a6@(-24) movl #170, a6@(-28) movl #180, a6@(-32) movl #190, a6@(-36) movl #200, a6@(-40)
11 University of Electronic Science Technology of China(UESTC) ■Case4 int a very long name 1; :488884884e0080e080888e48890088488004eg08848884e088年440888e48g088854e88800888884800888808408880e08890088848404 Movl #1,a very long_name Real-Time Systems Lab LIAO Yong
11 Real-Time Systems Lab LIAO Yong University of Electronic Science & Technology of China (UESTC) Case 4 int a_very_long_name = 1; Movl #1, a_very_long_name