10 char source
[40] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\0";
11 char target
[40] = " \0";
15 void *threadfunc(void *arg
)
20 memset(buf2
, 0, sizeof(buf2
));
21 for (i
=0; i
<5000; i
++)
30 "1: mvc 0(30,4),0(5)\n"
32 ::"a" (buf2
), "a" (source
)
33 : "1", "2", "3", "4", "5", "memory");
42 pthread_create(&thread
, NULL
, threadfunc
, NULL
);
44 for (i
=0; i
<5000; i
++)
53 "1: mvc 0(20,2),0(3)\n"
55 ::"a" (target
), "a" (source
)
56 : "1", "2", "3", "4", "5", "memory");
57 pthread_join(thread
, NULL
);
58 printf("%s\n", target
);