1 #include <stdlib.h> 2 main(int argc,char * argv[])3int main(int argc, char *argv[]) { 4 unsigned long loops = 10000000; // 10 million 5 if (argc > 1) { 6 loops = strtoul(argv[1], NULL, 10); 7 if (loops < 1) { 8 loops = 1; 9 } 10 } 11 12 asm (".local the_loop_start\nthe_loop_start:\n\t"); 13 while (--loops) { 14 /* nop */ 15 asm (".local the_loop_body\nthe_loop_body:\n\t"); 16 } 17 asm (".local the_loop_end\nthe_loop_end:\n\t"); 18 19 return 0; 20 } 21