~cpp
char t[] = "1234";
char *p = "5678";
char k[] = "123456";
.LC1:
.string "5678"
.LC0:
.string "1234"
.LC2:
.string "123456";
// char t[] = "1234";
movl .LC0, %eax
movl %eax, -9(%ebp)
movb .LC0+4, %al
movb %al, -5(%ebp)
// char *p = "5678";
movl $.LC1, -4(%ebp)
// char k[] = "123456";
leal -19(%ebp), %edi
movl $.LC0, %esi
cld
movl $7, %ecx
rep
movsb
// 마지막 k변수는 index 주소를 사용해 메모리를 목사하고 있다.
// 그렇다면 index로 메모리를 복사하는 것은 eax로 복사하는 것보다 느리다는 얘긴가?
사람들이 엉뚱하게 생각하는 가장 쉽고도 어려운 문제?










