home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctech / 1988_02 / read.me < prev    next >
Text File  |  1986-01-10  |  1KB  |  45 lines

  1.  
  2. Oops!  The benchmarks for "The State of C" (William J. Hunt, January
  3. 1986 p.82) are listed incorrectly in the magazine.  Hunt's programs
  4. are best divided into three groups;
  5.  
  6. 1) Compilation speed benchmarks.  Only the number of lines in the
  7. file is really signifigant here.
  8.  
  9. Listing 1: SIEVE.C, a 60-line file
  10. Listing 2: PENTATH.C, a 150-line file
  11. Listing 3: BIGFILE.C, a 500-line file
  12.  
  13. BIGFILE.C uses three Header files;
  14.  
  15. Listing 4: BIGFILE1.H
  16. Listing 5: BIGFILE2.H
  17. Listing 6: BIGFILE3.H
  18.  
  19. 2) Link time benchmarks.  For single-object-file link, SIEVE.C
  20. (listing 1) was used.  The following files were used for the six-
  21. file link benchmarks;
  22.  
  23. Listing 7: BENCH0.C
  24. Listing 8: BENCH1.C
  25. Listing 9: BENCH2.C
  26. Listing 10: BENCH3.C
  27. Listing 11: BENCH4.C
  28. Listing 12: BENCH5.C
  29.  
  30. 3) Execution benchmarks.  An eight-part program determined the
  31. execution speed of various language features.
  32.  
  33. Listing 13: AUTO1.C, the control routine which executed other
  34.             routines
  35. Listing 14: AUTO2.C, a modified pentathlon benchmark (similar to
  36.             Listing 1 in "C and the PC," PC Tech Journal, 
  37.             November/December 1983, p.110)
  38. Listing 15: AUTO3.C, more standard pentathlon benchmarks.
  39. Listing 16: AUTO4.C, integer math
  40. Listing 17: AUTO5.C, long integer math
  41. Listing 18: AUTO6.C, floating point math
  42. Listing 19: AUTO7.C, Fibonacci function call benchmark
  43. Listing 20: ELTIME.C, routine to read the clock for AUTO1.C
  44.  
  45.