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