home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os9 / 1412 < prev    next >
Encoding:
Text File  |  1992-11-08  |  6.6 KB  |  163 lines

  1. Newsgroups: comp.os.os9
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!spool.mu.edu!yale.edu!ira.uka.de!chx400!bernina!stp
  3. From: stp@bernina.ethz.ch (Stephan Paschedag)
  4. Subject: Ultra C test results
  5. Message-ID: <1992Nov8.200254.7954@bernina.ethz.ch>
  6. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  7. Date: Sun, 8 Nov 1992 20:02:54 GMT
  8. Lines: 153
  9.  
  10.  
  11. Hi !
  12.  
  13. here are the first results of my tests of the new Ultra C compiler.
  14. Interesting points :
  15.  
  16.   - why is sieve slower when compiled for a 68020 ?
  17.  
  18.   - rayshade could not be compiled with Ultra C because the compiler
  19.     generated invalid assembly source ('fadd.l a0,fp0'). This bug could
  20.     be avoided with -O0, but then the program didn't work anymore !
  21.  
  22.   - Ultra C does not have special math support for the 68040. A system-
  23.     state traphandler has to be used for 68881/2 emulation, which is VERY
  24.     slow. This is the reason why the whetstone benchmark is 10 times faster
  25.     on a 68040 when compiled with gcc (gcc has a special math library for
  26.     the 68040 chip).
  27.  
  28.   - when dhry V2.0 was compiled using -j (icode linking) the executable didn't
  29.     work anymore (Error #000:102, Bus Error).
  30.  
  31. Result : gcc still generates faster and more compact code than Ultra C.
  32.          Ultra C is a step into the right direction, but still needs many
  33.          improvements.
  34.  
  35. If there is somebody who gets different results, please let me know. If there
  36. are options for Ultra C that force it to generate faster code, please tell me !
  37.  
  38.  
  39. Stephan
  40.  
  41. ------------------------------------------------------------------------------
  42.  
  43. Program   : sieve  (source : 2058 bytes, 135 lines)
  44. Machine   : MVME147S-1 (68030 25MHz, 1 User, no other active processes)
  45. Date      : 92/10/06
  46. Compilers : ucc V1.0, gcc V1.42, cc V3.2
  47.  
  48. compiler/options                         comp time   exec time     size
  49. ====================================== ============ =========== ==========
  50.  
  51. ucc -O7                                      31        3.94        25130
  52. ucc -O7 -j                                  392        3.94        24266
  53. ucc -O0                                      18        7.73        25314
  54. ucc -tp020 -O7                               29        4.25        23510
  55. ucc -tp020 -O7 -j                           389        4.24        23190
  56. ucc -tp020 -O0                               17        7.73        23706
  57. ucc -tp020c -O7                              30        4.25        23462
  58.  
  59. gcc -O                                       17        3.73        18850
  60. gcc -O -ob                                   17        3.70        18806
  61. gcc                                          13        5.93        19266
  62. gcc -O -mc68020                              17        3.73        23030
  63. gcc -O -ob -mc68020                          17        3.69        22986
  64. gcc -mc68020                                 13        5.93        23446
  65.  
  66. cc -O=2                                      11        4.82        18732
  67. cc -O                                        10        4.86        18776
  68. cc -O=2 -k2wcw                               12        4.82        22960
  69. cc -O -k2wcw                                 10        4.86        23004
  70.  
  71. ------------------------------------------------------------------------------
  72.  
  73. Program   : dhry V1.0
  74. Machine   : KWS cpUnit040 (68040 25MHz, 1 User, no other active processes)
  75. Date      : 92/11/08
  76. Compilers : ucc V1.0, gcc V1.42, cc V3.2
  77.  
  78. compiler/options                        dhry/sec      size
  79. ====================================== =========== ==========
  80.  
  81. ucc -tp68k -O7                            15663      22926
  82. ucc -tp68k -r -O7                         16537      22542
  83. ucc -tp020 -O7                            20779      21426
  84. ucc -tp020 -r -O7                         22299      18942
  85. ucc -tp020c -r -O7                        22206      21070
  86.  
  87. gcc -O -o68 -ob                           18099      15274
  88. gcc -O -o68 -ob -mnostack-check           21650      15130
  89. gcc -O -o68 -ob -m68020                   21577      18034
  90. gcc -O -o68 -ob -mnostack-check -m68020   26622      17890
  91. gcc -O -ob -mnostack-check -m68020
  92.     -fomit-frame-pointer -fforce-mem
  93.     -fcombine-regs                        30477      17774
  94.  
  95. cc -k0wcw -q -O=2                         12432      15482
  96. cc -k0wcw -S -q -O=2                      13570      15342
  97. cc -k2wcw -q -O=2                         17259      18238
  98. cc -k2wcw -S -q -O=2                      19716      18098
  99.  
  100. ------------------------------------------------------------------------------
  101.  
  102. Program   : dhry V2.0
  103. Machine   : KWS cpUnit040 (68040 25MHz, 1 User, no other active processes)
  104. Date      : 92/11/08
  105. Compilers : ucc V1.0, gcc V1.42, cc V3.2
  106.  
  107. compiler/options                        dhry/sec      size
  108. ====================================== =========== ==========
  109.  
  110. ucc -tp020 -O7                            17247      23260
  111. ucc -tp020 -O7 -r                         18920      22920
  112. ucc -tp020c -O7 -r                        18900      22892
  113.  
  114. gcc -O -ob -m68020 -fcombine-regs
  115.     -fomit-frame-pointer -fforce-mem      20800      19082
  116. gcc -O -ob -m68020 -fcombine-regs
  117.     -fomit-frame-pointer -fforce-mem
  118.     -mnostack-check                       25918      18938
  119.  
  120. cc -k2wcw -O=2                            14256      19536
  121. cc -k2wcw -O=2 -S                         16425      19292
  122.  
  123. ------------------------------------------------------------------------------
  124.  
  125. Program   : whet
  126. Machine   : KWS cpUnit040 (68040 25MHz, 1 User, no other active processes)
  127. Date      : 92/11/08
  128. Compilers : ucc V1.0, gcc V1.42
  129.  
  130. compiler/options                        whet/sec      size
  131. ====================================== =========== ==========
  132.  
  133. ucc -O7 -tp020                           4633000     22986
  134.  
  135. gcc -O -mc68040                         45745600     21436
  136.  
  137. gcc -O -m68020 -m68881                   4689900     16730
  138.  
  139. ------------------------------------------------------------------------------
  140.  
  141. Program   : whet
  142. Machine   : NDR Computer (68030 25MHz, 68882 25MHz)
  143. Date      : 92/11/08
  144. Compilers : ucc V1.0, gcc V1.42
  145.  
  146. compiler/options                        whet/sec      size
  147. ====================================== =========== ==========
  148.  
  149. ucc -O7 -tp020                          12180200     22986
  150.  
  151. gcc -O -mc68040                          8631100     21436
  152.  
  153. gcc -O -m68020 -m68881                  13372500     16730
  154.  
  155. ==============================================================================
  156. OS/2 & PS/2 : half an operating system for half a computer.
  157.  
  158. Stephan Paschedag                                         stp@ethz.UUCP
  159. Bauernhalde 5, CH-8708 Maennedorf             ..!mcvax!cernvax!chx400!ethz!stp
  160. or MPL AG, Zelgweg 12, CH-5405 Baden-Daettwil          stp@bernina.ethz.ch
  161. ______________________________________________________________________________
  162.  
  163.