void main(){
int i,j;
for(i=0;i<5;i++){
printf("0");
for(j=0;j<2;j++){
printf("1");
}
}
}
汇编:
main:
.LFB24:
pushl %ebp
movl %esp, %ebp
pushl %ebx
andl $-16, %esp
subl $16, %esp
movl $5, %ebx
.L3:
movl $48, (%esp)
call putchar
movl $49, (%esp)
call putchar
movl $49, (%esp)
call putchar
subl $1, %ebx
jne .L3
movl -4(%ebp), %ebx
leave
ret