home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11532 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.7 KB  |  67 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!darwin.sura.net!mips!odin!sgihub!zola!twilight!triton.wpd.sgi.com!wsj
  3. From: wsj@triton.wpd.sgi.com (Bill Johnson)
  4. Subject: Re: nsieve.c results update
  5. Message-ID: <nsgilfs@twilight.wpd.sgi.com>
  6. Sender: news@twilight.wpd.sgi.com ( CNews Account at twilight.wpd.sgi.com )
  7. Reply-To: wsj@wpd.sgi.com
  8. Organization: Silicon Graphics, Inc.
  9. References: <1992Jul26.112657.9443@nosc.mil> <1992Jul27.155003.14769@comp.bioz.unibas.ch>
  10. Distribution: world          
  11. Date: Tue, 28 Jul 92 21:37:46 GMT
  12. Lines: 53
  13.  
  14. Using the latest release of the compilers (version 3.10) and the new
  15. scalar C optimizer (invoked with -sopt), I was able to improve significantly
  16. upon these results:
  17.  
  18. System           Compiler                      CPU     CPU   High  Low
  19. ---------------- --------------------------- -------  (MHz)  MIPS  MIPS
  20. SGI Iris Crimson Irix 4.0.5, 3.10 compilers   R4000   50/100 89.1  14.7
  21.  
  22. The exact compile line used was:
  23.  
  24.  cc -mips2 -DUNIX -O3 -sopt,-inlr,-so=4,-r=3,-arl=3,-ur=8,-ur2=400
  25.  
  26. Explanation:
  27.  
  28. cc -sopt invokes the new scalar optimization pass (in /usr/lib/copt).  Optional
  29. arguments may follow in a comma-separated list.  Those used above were:
  30.  
  31.  -inlr    inline all functions, if possible; remove if all references
  32.       to that function have been inlined
  33.  -so=4    increase scalar optimization level to 4
  34.  -r=3     increase roundoff level to 3 (ignore all round-off errors)
  35.  -arl=3   Assume local pointers and arrays are distinct from global
  36.           pointers and arrays, and that function arguments are
  37.       distinct from each other
  38.  -ur=8    unroll loops 8 times, or until 400 operations are in the loop,
  39.  -ur2=400 whichever comes first
  40.  
  41. Use man copt(1) for further information.
  42.  
  43. In article <1992Jul27.155003.14769@comp.bioz.unibas.ch>, doelz@comp.bioz.unibas.ch (Reinhard Doelz) writes:
  44. |>  Just for your information, as posted in another newsgroup. 
  45. |> Regards 
  46. |> Reinhard 
  47. |> 
  48. |> In article <1992Jul26.112657.9443@nosc.mil>, aburto@nosc.mil (Alfred A. Aburto) writes:
  49. |> |> -------
  50. |> |> NSIEVE.C, Version 1.2, 03 April 1992
  51. |> |> 
  52. |> |> Results as of 25 Jul 1992:
  53. |> |> 
  54. |> |> System           Compiler                    CPU     CPU   High  Low   NOTE
  55. |> |> ---------------- ------------------------- -------  (MHz)  MIPS  MIPS  ----
  56. |> |> 
  57. |> |> HP 9000/730      HP-UX 8.07, cc +OS +O3    PA-RISC   66.   65.9  16.6    10
  58. |> |> SGI Iris Crimson cc -O3 -mips2               R4000 50/100  65.4  13.3    16
  59. |> |> SGI Iris Crimson Irix 4.0.3, cc -O4          R4000 50/100  64.8  13.1    12
  60.  
  61. <slower performance numbers deleted>
  62.  
  63. -- 
  64. Bill Johnson                    9U-530                   wsj@wpd.sgi.com
  65. Silicon Graphics, Inc.                             Office:(415) 390-1440
  66. Systems Software Technology Center                    Fax:(415) 969-2314
  67.