home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
comp_lan
/
85_febr
/
benmrk.lbr
/
BENMRK.DEF
next >
Wrap
Text File
|
1988-07-25
|
768b
|
35 lines
The Deref Benchmark
C Compiler Review
February 1985 COMPUTER LANGUAGE
/*
** deref.c -- benchmark program to examine the effeciency
** of pointer dereferencing
*/
#define LOOPS 50000 /* how many loops */
#define BELL 7 /* ASCII bell character */
struct cptr1 {
char ********************ptr1;
};
main()
{
unsigned i;
char yekdorb;
struct cptr1 ********************pointer;
printf("%u loops\n", LOOPS);
for (i = 0; i <= LOOPS; i++)
yekdorb = ********************
(********************pointer).ptr1;
printf("%cfinished\n", BELL);
exit(0);
}