|
|
DataMuseum.dkPresents historical artifacts from the history of: Bogika Butler |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Bogika Butler Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1152 (0x480)
Types: TextFile
Names: »SAMP2.C«
└─⟦d3d1d07f5⟧ Bits:30009789/_.ft.Ibm2.50006621.imd Mogens Pelles Zilog 80,000 / EOS projekt
└─⟦this⟧ »SAMP2.C«
#include "auxfn.h"
main()
æ
register int t;
char q;
int r;
int count;
puts("ØnØnSample program #2 : execution speed of variable typesØn");
puts("ØnØnThis program will illustrate the speed differencesØn");
puts("between types register, char and int. Nested for loopsØn");
puts("each counting to 255 will be executed.Øn");
puts("In each case, the outer loop is controlled byØn");
puts("type int and the inside loop is the type under studyØn");
puts("You should time each loop. (type register is quite fast)ØnØn");
puts("Hit return to start register loop: ");
getchar();
putchar(7); putchar('*');
for(count=0;count<255;++count)
for(t=0;t<255;++t);
putchar(7);putchar('*');
puts("ØnHit return to start char loop: ");
getchar();
putchar(7);putchar('*');
for(count=0;count<255;++count)
for(q=0;q<255;++q);
putchar(7);putchar('*');
puts("ØnHit return to start int loop: ");
getchar();
putchar(7);putchar('*');
for(count=0;count<255;++count)
for(r=0;r<255;++r);
putchar(7);putchar('*');
å
«eof»