home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 4d 61 72 74 | 69 6e 20 46 6f 75 74 73 |om: Mart|in Fouts|
|00000030| 20 3c 66 6f 75 74 73 40 | 63 6c 69 70 70 65 72 2e | <fouts@|clipper.|
|00000040| 69 6e 67 72 2e 63 6f 6d | 3e 0a 53 75 62 6a 65 63 |ingr.com|>.Subjec|
|00000050| 74 3a 20 20 76 32 31 69 | 30 33 38 3a 20 20 63 6c |t: v21i|038: cl|
|00000060| 6f 6f 70 73 20 2d 20 4c | 69 76 65 72 6d 6f 72 65 |oops - L|ivermore|
|00000070| 20 4c 6f 6f 70 73 20 69 | 6e 20 43 2c 20 50 61 72 | Loops i|n C, Par|
|00000080| 74 30 33 2f 30 33 0a 4d | 65 73 73 61 67 65 2d 49 |t03/03.M|essage-I|
|00000090| 44 3a 20 3c 31 39 39 31 | 4a 75 6c 32 35 2e 30 32 |D: <1991|Jul25.02|
|000000a0| 30 37 34 30 2e 32 38 33 | 37 35 40 73 70 61 72 6b |0740.283|75@spark|
|000000b0| 79 2e 49 4d 44 2e 53 74 | 65 72 6c 69 6e 67 2e 43 |y.IMD.St|erling.C|
|000000c0| 4f 4d 3e 0a 58 2d 4d 64 | 34 2d 53 69 67 6e 61 74 |OM>.X-Md|4-Signat|
|000000d0| 75 72 65 3a 20 36 36 62 | 62 62 33 34 63 35 33 38 |ure: 66b|bb34c538|
|000000e0| 30 31 63 33 38 66 31 65 | 66 31 62 38 36 37 39 39 |01c38f1e|f1b86799|
|000000f0| 31 37 34 62 37 0a 44 61 | 74 65 3a 20 54 68 75 2c |174b7.Da|te: Thu,|
|00000100| 20 32 35 20 4a 75 6c 20 | 31 39 39 31 20 30 32 3a | 25 Jul |1991 02:|
|00000110| 30 37 3a 34 30 20 47 4d | 54 0a 41 70 70 72 6f 76 |07:40 GM|T.Approv|
|00000120| 65 64 3a 20 6b 65 6e 74 | 40 73 70 61 72 6b 79 2e |ed: kent|@sparky.|
|00000130| 69 6d 64 2e 73 74 65 72 | 6c 69 6e 67 2e 63 6f 6d |imd.ster|ling.com|
|00000140| 0a 0a 53 75 62 6d 69 74 | 74 65 64 2d 62 79 3a 20 |..Submit|ted-by: |
|00000150| 4d 61 72 74 69 6e 20 46 | 6f 75 74 73 20 3c 66 6f |Martin F|outs <fo|
|00000160| 75 74 73 40 63 6c 69 70 | 70 65 72 2e 69 6e 67 72 |uts@clip|per.ingr|
|00000170| 2e 63 6f 6d 3e 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |.com>.Po|sting-nu|
|00000180| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 32 31 2c |mber: Vo|lume 21,|
|00000190| 20 49 73 73 75 65 20 33 | 38 0a 41 72 63 68 69 76 | Issue 3|8.Archiv|
|000001a0| 65 2d 6e 61 6d 65 3a 20 | 63 6c 6f 6f 70 73 2f 70 |e-name: |cloops/p|
|000001b0| 61 72 74 30 33 0a 45 6e | 76 69 72 6f 6e 6d 65 6e |art03.En|vironmen|
|000001c0| 74 3a 20 43 72 61 79 32 | 2c 20 41 6c 6c 69 61 6e |t: Cray2|, Allian|
|000001d0| 74 20 43 6f 6e 76 65 78 | 20 41 6d 64 61 68 6c 2c |t Convex| Amdahl,|
|000001e0| 20 53 75 6e 2c 20 53 47 | 49 20 20 0a 0a 2d 2d 2d | Sun, SG|I ..---|
|000001f0| 2d 2d 20 20 20 20 20 63 | 75 74 20 68 65 72 65 20 |-- c|ut here |
|00000200| 66 6f 72 20 50 61 72 74 | 30 33 0a 23 21 20 2f 62 |for Part|03.#! /b|
|00000210| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000220| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |a shell |archive.|
|00000230| 20 20 52 65 6d 6f 76 65 | 20 61 6e 79 74 68 69 6e | Remove| anythin|
|00000240| 67 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 6c 69 |g before| this li|
|00000250| 6e 65 2c 20 74 68 65 6e | 20 75 6e 70 61 63 6b 0a |ne, then| unpack.|
|00000260| 23 20 69 74 20 62 79 20 | 73 61 76 69 6e 67 20 69 |# it by |saving i|
|00000270| 74 20 69 6e 74 6f 20 61 | 20 66 69 6c 65 20 61 6e |t into a| file an|
|00000280| 64 20 74 79 70 69 6e 67 | 20 22 73 68 20 66 69 6c |d typing| "sh fil|
|00000290| 65 22 2e 20 20 54 6f 20 | 6f 76 65 72 77 72 69 74 |e". To |overwrit|
|000002a0| 65 20 65 78 69 73 74 69 | 6e 67 0a 23 20 66 69 6c |e existi|ng.# fil|
|000002b0| 65 73 2c 20 74 79 70 65 | 20 22 73 68 20 66 69 6c |es, type| "sh fil|
|000002c0| 65 20 2d 63 22 2e 20 20 | 59 6f 75 20 63 61 6e 20 |e -c". |You can |
|000002d0| 61 6c 73 6f 20 66 65 65 | 64 20 74 68 69 73 20 61 |also fee|d this a|
|000002e0| 73 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |s standa|rd input|
|000002f0| 20 76 69 61 0a 23 20 75 | 6e 73 68 61 72 2c 20 6f | via.# u|nshar, o|
|00000300| 72 20 62 79 20 74 79 70 | 69 6e 67 20 22 73 68 20 |r by typ|ing "sh |
|00000310| 3c 66 69 6c 65 22 2c 20 | 65 2e 67 2e 2e 20 20 49 |<file", |e.g.. I|
|00000320| 66 20 74 68 69 73 20 61 | 72 63 68 69 76 65 20 69 |f this a|rchive i|
|00000330| 73 20 63 6f 6d 70 6c 65 | 74 65 2c 20 79 6f 75 0a |s comple|te, you.|
|00000340| 23 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |# will s|ee the f|
|00000350| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|00000360| 20 61 74 20 74 68 65 20 | 65 6e 64 3a 0a 23 09 09 | at the |end:.#..|
|00000370| 22 45 6e 64 20 6f 66 20 | 61 72 63 68 69 76 65 20 |"End of |archive |
|00000380| 33 20 28 6f 66 20 33 29 | 2e 22 0a 23 20 43 6f 6e |3 (of 3)|.".# Con|
|00000390| 74 65 6e 74 73 3a 20 20 | 63 6c 6f 6f 70 73 2e 74 |tents: |cloops.t|
|000003a0| 65 78 0a 23 20 57 72 61 | 70 70 65 64 20 62 79 20 |ex.# Wra|pped by |
|000003b0| 66 6f 75 74 73 40 62 6f | 7a 65 6d 61 6e 20 6f 6e |fouts@bo|zeman on|
|000003c0| 20 53 75 6e 20 4a 75 6c | 20 32 31 20 31 38 3a 32 | Sun Jul| 21 18:2|
|000003d0| 33 3a 32 31 20 31 39 39 | 31 0a 50 41 54 48 3d 2f |3:21 199|1.PATH=/|
|000003e0| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|000003f0| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|00000400| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000410| 63 6c 6f 6f 70 73 2e 74 | 65 78 27 20 2d 61 20 22 |cloops.t|ex' -a "|
|00000420| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000430| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000440| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000450| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000460| 65 20 5c 22 27 63 6c 6f | 6f 70 73 2e 74 65 78 27 |e \"'clo|ops.tex'|
|00000470| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00000480| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00000490| 27 63 6c 6f 6f 70 73 2e | 74 65 78 27 5c 22 20 5c |'cloops.|tex'\" \|
|000004a0| 28 32 38 33 30 34 20 63 | 68 61 72 61 63 74 65 72 |(28304 c|haracter|
|000004b0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000004c0| 20 3e 27 63 6c 6f 6f 70 | 73 2e 74 65 78 27 20 3c | >'cloop|s.tex' <|
|000004d0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000004e0| 25 20 43 2d 4c 6f 6f 70 | 73 0a 58 25 0a 58 25 20 |% C-Loop|s.X%.X% |
|000004f0| 41 20 50 61 70 65 72 20 | 44 65 73 63 72 69 62 69 |A Paper |Describi|
|00000500| 6e 67 20 74 68 65 20 43 | 20 76 65 72 73 69 6f 6e |ng the C| version|
|00000510| 20 6f 66 20 74 68 65 20 | 4c 69 76 65 72 6d 6f 72 | of the |Livermor|
|00000520| 65 20 4c 6f 6f 70 73 0a | 58 25 20 43 6f 70 79 72 |e Loops.|X% Copyr|
|00000530| 69 67 68 74 20 28 43 29 | 20 31 39 39 31 20 4d 61 |ight (C)| 1991 Ma|
|00000540| 72 74 69 6e 20 46 6f 75 | 74 73 0a 58 25 0a 58 25 |rtin Fou|ts.X%.X%|
|00000550| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|00000560| 20 66 72 65 65 20 73 6f | 66 74 77 61 72 65 3b 20 | free so|ftware; |
|00000570| 79 6f 75 20 63 61 6e 20 | 72 65 64 69 73 74 72 69 |you can |redistri|
|00000580| 62 75 74 65 20 69 74 20 | 61 6e 64 2f 6f 72 20 6d |bute it |and/or m|
|00000590| 6f 64 69 66 79 0a 58 25 | 20 69 74 20 75 6e 64 65 |odify.X%| it unde|
|000005a0| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 74 |r the te|rms of t|
|000005b0| 68 65 20 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he GNU G|eneral P|
|000005c0| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 61 73 |ublic Li|cense as|
|000005d0| 20 70 75 62 6c 69 73 68 | 65 64 20 62 79 0a 58 25 | publish|ed by.X%|
|000005e0| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|000005f0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00000600| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 31 2c |ither ve|rsion 1,|
|00000610| 20 6f 72 20 28 61 74 20 | 79 6f 75 72 20 6f 70 74 | or (at |your opt|
|00000620| 69 6f 6e 29 0a 58 25 20 | 61 6e 79 20 6c 61 74 65 |ion).X% |any late|
|00000630| 72 20 76 65 72 73 69 6f | 6e 2e 0a 58 25 0a 58 25 |r versio|n..X%.X%|
|00000640| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|00000650| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 69 6e 20 | distrib|uted in |
|00000660| 74 68 65 20 68 6f 70 65 | 20 74 68 61 74 20 69 74 |the hope| that it|
|00000670| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 66 75 6c 2c | will be| useful,|
|00000680| 0a 58 25 20 62 75 74 20 | 57 49 54 48 4f 55 54 20 |.X% but |WITHOUT |
|00000690| 41 4e 59 20 57 41 52 52 | 41 4e 54 59 3b 20 77 69 |ANY WARR|ANTY; wi|
|000006a0| 74 68 6f 75 74 20 65 76 | 65 6e 20 74 68 65 20 69 |thout ev|en the i|
|000006b0| 6d 70 6c 69 65 64 20 77 | 61 72 72 61 6e 74 79 20 |mplied w|arranty |
|000006c0| 6f 66 0a 58 25 20 4d 45 | 52 43 48 41 4e 54 41 42 |of.X% ME|RCHANTAB|
|000006d0| 49 4c 49 54 59 20 6f 72 | 20 46 49 54 4e 45 53 53 |ILITY or| FITNESS|
|000006e0| 20 46 4f 52 20 41 20 50 | 41 52 54 49 43 55 4c 41 | FOR A P|ARTICULA|
|000006f0| 52 20 50 55 52 50 4f 53 | 45 2e 20 20 53 65 65 20 |R PURPOS|E. See |
|00000700| 74 68 65 0a 58 25 20 47 | 4e 55 20 47 65 6e 65 72 |the.X% G|NU Gener|
|00000710| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|00000720| 65 20 66 6f 72 20 6d 6f | 72 65 20 64 65 74 61 69 |e for mo|re detai|
|00000730| 6c 73 2e 0a 58 25 0a 58 | 25 20 59 6f 75 20 73 68 |ls..X%.X|% You sh|
|00000740| 6f 75 6c 64 20 68 61 76 | 65 20 72 65 63 65 69 76 |ould hav|e receiv|
|00000750| 65 64 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ed a cop|y of the|
|00000760| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00000770| 6c 69 63 20 4c 69 63 65 | 6e 73 65 0a 58 25 20 61 |lic Lice|nse.X% a|
|00000780| 6c 6f 6e 67 20 77 69 74 | 68 20 74 68 69 73 20 70 |long wit|h this p|
|00000790| 72 6f 67 72 61 6d 3b 20 | 69 66 20 6e 6f 74 2c 20 |rogram; |if not, |
|000007a0| 77 72 69 74 65 20 74 6f | 20 74 68 65 20 46 72 65 |write to| the Fre|
|000007b0| 65 20 53 6f 66 74 77 61 | 72 65 0a 58 25 20 46 6f |e Softwa|re.X% Fo|
|000007c0| 75 6e 64 61 74 69 6f 6e | 2c 20 49 6e 63 2e 2c 20 |undation|, Inc., |
|000007d0| 36 37 35 20 4d 61 73 73 | 20 41 76 65 2c 20 43 61 |675 Mass| Ave, Ca|
|000007e0| 6d 62 72 69 64 67 65 2c | 20 4d 41 20 30 32 31 33 |mbridge,| MA 0213|
|000007f0| 39 2c 20 55 53 41 2e 0a | 58 25 0a 58 0a 58 5c 64 |9, USA..|X%.X.X\d|
|00000800| 6f 63 75 6d 65 6e 74 73 | 74 79 6c 65 5b 31 32 70 |ocuments|tyle[12p|
|00000810| 74 2c 74 77 6f 73 69 64 | 65 2c 66 6c 65 71 6e 2c |t,twosid|e,fleqn,|
|00000820| 6f 70 65 6e 62 69 62 5d | 7b 61 72 74 69 63 6c 65 |openbib]|{article|
|00000830| 7d 0a 58 5c 70 61 67 65 | 73 74 79 6c 65 7b 6d 79 |}.X\page|style{my|
|00000840| 68 65 61 64 69 6e 67 73 | 7d 0a 58 5c 6d 61 72 6b |headings|}.X\mark|
|00000850| 62 6f 74 68 7b 44 52 41 | 46 54 20 6f 66 20 5c 74 |both{DRA|FT of \t|
|00000860| 6f 64 61 79 7d 7b 44 52 | 41 46 54 20 6f 66 20 5c |oday}{DR|AFT of \|
|00000870| 74 6f 64 61 79 7d 0a 58 | 0a 58 5c 74 69 74 6c 65 |today}.X|.X\title|
|00000880| 7b 20 54 68 65 20 4c 69 | 76 65 72 6d 6f 72 65 20 |{ The Li|vermore |
|00000890| 4c 6f 6f 70 73 20 69 6e | 20 43 0a 58 5c 5c 20 44 |Loops in| C.X\\ D|
|000008a0| 52 41 46 54 20 6f 66 20 | 5c 74 6f 64 61 79 20 7d |RAFT of |\today }|
|000008b0| 0a 58 0a 58 5c 61 75 74 | 68 6f 72 7b 0a 58 4d 61 |.X.X\aut|hor{.XMa|
|000008c0| 72 74 69 6e 20 46 6f 75 | 74 73 20 5c 5c 0a 58 4d |rtin Fou|ts \\.XM|
|000008d0| 61 74 68 65 6d 61 74 69 | 63 69 61 6e 20 5c 5c 0a |athemati|cian \\.|
|000008e0| 58 4e 41 53 20 53 79 73 | 74 65 6d 73 20 44 65 76 |XNAS Sys|tems Dev|
|000008f0| 65 6c 6f 70 6d 65 6e 74 | 20 42 72 61 6e 63 68 20 |elopment| Branch |
|00000900| 5c 5c 0a 58 4e 41 53 41 | 20 41 6d 65 73 20 52 65 |\\.XNASA| Ames Re|
|00000910| 73 65 61 72 63 68 20 43 | 65 6e 74 65 72 7d 0a 58 |search C|enter}.X|
|00000920| 0a 58 0a 58 5c 62 65 67 | 69 6e 7b 64 6f 63 75 6d |.X.X\beg|in{docum|
|00000930| 65 6e 74 7d 0a 58 5c 6d | 61 6b 65 74 69 74 6c 65 |ent}.X\m|aketitle|
|00000940| 0a 58 25 5c 74 61 62 6c | 65 6f 66 63 6f 6e 74 65 |.X%\tabl|eofconte|
|00000950| 6e 74 73 0a 58 25 5c 76 | 66 69 6c 6c 0a 58 25 5c |nts.X%\v|fill.X%\|
|00000960| 70 61 67 65 62 72 65 61 | 6b 0a 58 5c 6d 61 72 6b |pagebrea|k.X\mark|
|00000970| 62 6f 74 68 7b 44 52 41 | 46 54 20 6f 66 20 5c 74 |both{DRA|FT of \t|
|00000980| 6f 64 61 79 7d 7b 44 52 | 41 46 54 20 6f 66 20 5c |oday}{DR|AFT of \|
|00000990| 74 6f 64 61 79 7d 0a 58 | 0a 58 5c 62 65 67 69 6e |today}.X|.X\begin|
|000009a0| 7b 61 62 73 74 72 61 63 | 74 7d 0a 58 0a 58 54 68 |{abstrac|t}.X.XTh|
|000009b0| 65 20 4c 69 76 65 72 6d | 6f 72 65 20 4c 6f 6f 70 |e Liverm|ore Loop|
|000009c0| 73 20 77 65 72 65 20 74 | 72 61 6e 73 6c 69 74 65 |s were t|ranslite|
|000009d0| 72 61 74 65 64 20 66 72 | 6f 6d 20 46 6f 72 74 72 |rated fr|om Fortr|
|000009e0| 61 6e 20 69 6e 74 6f 20 | 43 2e 20 20 54 68 65 0a |an into |C. The.|
|000009f0| 58 72 65 73 75 6c 74 69 | 6e 67 20 70 72 6f 67 72 |Xresulti|ng progr|
|00000a00| 61 6d 20 77 61 73 20 72 | 75 6e 20 6f 6e 20 73 65 |am was r|un on se|
|00000a10| 76 65 72 61 6c 20 6d 61 | 63 68 69 6e 65 73 20 77 |veral ma|chines w|
|00000a20| 68 69 63 68 20 73 75 70 | 70 6f 72 74 20 62 6f 74 |hich sup|port bot|
|00000a30| 68 20 61 20 43 0a 58 61 | 6e 64 20 46 6f 72 74 72 |h a C.Xa|nd Fortr|
|00000a40| 61 6e 20 63 6f 6d 70 69 | 6c 65 72 2e 20 20 54 68 |an compi|ler. Th|
|00000a50| 65 20 65 66 66 6f 72 74 | 20 74 61 6b 65 6e 20 69 |e effort| taken i|
|00000a60| 6e 20 70 6f 72 74 69 6e | 67 20 74 68 65 20 6c 6f |n portin|g the lo|
|00000a70| 6f 70 73 20 69 73 0a 58 | 64 69 73 63 75 73 73 65 |ops is.X|discusse|
|00000a80| 64 2c 20 61 6e 64 20 74 | 68 65 20 72 65 73 75 6c |d, and t|he resul|
|00000a90| 74 73 20 61 72 65 20 70 | 72 65 73 65 6e 74 65 64 |ts are p|resented|
|00000aa0| 2e 20 20 53 6f 6d 65 20 | 6f 66 20 74 68 65 20 6d |. Some |of the m|
|00000ab0| 6f 72 65 0a 58 69 6e 74 | 65 72 65 73 74 69 6e 67 |ore.Xint|eresting|
|00000ac0| 20 72 65 73 75 6c 74 73 | 20 61 72 65 20 61 6e 61 | results| are ana|
|00000ad0| 6c 79 7a 65 64 2e 20 50 | 72 6f 62 6c 65 6d 73 20 |lyzed. P|roblems |
|00000ae0| 77 68 69 63 68 20 61 72 | 69 73 65 20 66 72 6f 6d |which ar|ise from|
|00000af0| 0a 58 75 73 69 6e 67 20 | 74 68 65 20 4c 6f 6f 70 |.Xusing |the Loop|
|00000b00| 73 20 61 73 20 61 20 62 | 65 6e 63 68 6d 61 72 6b |s as a b|enchmark|
|00000b10| 20 73 75 69 74 65 20 61 | 72 65 20 64 69 73 63 75 | suite a|re discu|
|00000b20| 73 73 65 64 2e 20 53 6f | 6d 65 20 63 6f 6e 63 6c |ssed. So|me concl|
|00000b30| 75 73 69 6f 6e 73 0a 58 | 61 62 6f 75 74 20 6e 75 |usions.X|about nu|
|00000b40| 6d 65 72 69 63 61 6c 20 | 63 6f 6d 70 75 74 61 74 |merical |computat|
|00000b50| 69 6f 6e 20 69 6e 20 43 | 20 61 72 65 20 64 72 61 |ion in C| are dra|
|00000b60| 77 6e 2e 0a 58 0a 58 5c | 65 6e 64 7b 61 62 73 74 |wn..X.X\|end{abst|
|00000b70| 72 61 63 74 7d 0a 58 0a | 58 5c 73 65 63 74 69 6f |ract}.X.|X\sectio|
|00000b80| 6e 7b 42 61 63 6b 67 72 | 6f 75 6e 64 7d 0a 58 0a |n{Backgr|ound}.X.|
|00000b90| 58 4e 75 6d 65 72 69 63 | 61 6c 20 63 61 6c 63 75 |XNumeric|al calcu|
|00000ba0| 6c 61 74 69 6f 6e 73 2c | 20 65 73 70 65 63 69 61 |lations,| especia|
|00000bb0| 6c 6c 79 20 74 68 6f 73 | 65 20 69 6e 76 6f 6c 76 |lly thos|e involv|
|00000bc0| 69 6e 67 20 76 65 63 74 | 6f 72 20 6f 70 65 72 61 |ing vect|or opera|
|00000bd0| 74 69 6f 6e 73 0a 58 68 | 61 76 65 20 6c 6f 6e 67 |tions.Xh|ave long|
|00000be0| 20 62 65 65 6e 20 74 68 | 65 20 74 65 72 72 69 74 | been th|e territ|
|00000bf0| 6f 72 79 20 6f 66 20 46 | 6f 72 74 72 61 6e 20 61 |ory of F|ortran a|
|00000c00| 6e 64 20 69 74 20 69 73 | 20 77 69 64 65 6c 79 20 |nd it is| widely |
|00000c10| 61 63 63 65 70 74 65 64 | 20 74 68 61 74 0a 58 6e |accepted| that.Xn|
|00000c20| 6f 20 6f 74 68 65 72 20 | 68 69 67 68 20 6c 65 76 |o other |high lev|
|00000c30| 65 6c 20 6c 61 6e 67 75 | 61 67 65 20 6f 66 66 65 |el langu|age offe|
|00000c40| 72 73 20 74 68 65 20 73 | 61 6d 65 20 6f 70 70 6f |rs the s|ame oppo|
|00000c50| 72 74 75 6e 69 74 79 20 | 66 6f 72 20 63 6f 6d 70 |rtunity |for comp|
|00000c60| 69 6c 65 72 0a 58 6f 70 | 74 69 6d 69 7a 61 74 69 |iler.Xop|timizati|
|00000c70| 6f 6e 20 6f 66 20 73 6f | 75 72 63 65 20 63 6f 64 |on of so|urce cod|
|00000c80| 65 2e 0a 58 0a 58 54 68 | 65 20 4c 69 76 65 72 6d |e..X.XTh|e Liverm|
|00000c90| 6f 72 65 20 4c 6f 6f 70 | 73 5c 63 69 74 65 7b 4d |ore Loop|s\cite{M|
|00000ca0| 63 4d 61 68 6f 6e 38 36 | 7d 20 61 72 65 20 77 69 |cMahon86|} are wi|
|00000cb0| 64 65 6c 79 20 75 73 65 | 64 20 61 73 20 61 20 62 |dely use|d as a b|
|00000cc0| 65 6e 63 68 6d 61 72 6b | 20 6f 66 0a 58 6e 75 6d |enchmark| of.Xnum|
|00000cd0| 65 72 69 63 61 6c 20 69 | 6e 74 65 6e 73 69 76 65 |erical i|ntensive|
|00000ce0| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 20 69 6e 20 | calcula|tion in |
|00000cf0| 46 6f 72 74 72 61 6e 20 | 61 6e 64 20 72 65 73 75 |Fortran |and resu|
|00000d00| 6c 74 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |lts are |availabl|
|00000d10| 65 0a 58 66 6f 72 20 61 | 20 77 69 64 65 20 72 61 |e.Xfor a| wide ra|
|00000d20| 6e 67 65 20 6f 66 20 6d | 61 63 68 69 6e 65 73 2e |nge of m|achines.|
|00000d30| 20 20 54 68 65 20 6c 6f | 6f 70 73 20 77 65 72 65 | The lo|ops were|
|00000d40| 20 74 72 61 6e 73 6c 69 | 74 65 72 61 74 65 64 20 | transli|terated |
|00000d50| 66 72 6f 6d 0a 58 46 6f | 72 74 72 61 6e 20 69 6e |from.XFo|rtran in|
|00000d60| 74 6f 20 43 20 61 6e 64 | 20 72 65 73 75 6c 74 73 |to C and| results|
|00000d70| 20 77 65 72 65 20 67 61 | 74 68 65 72 65 64 20 66 | were ga|thered f|
|00000d80| 6f 72 20 73 65 76 65 72 | 61 6c 20 6d 61 63 68 69 |or sever|al machi|
|00000d90| 6e 65 73 2e 20 20 4f 6e | 0a 58 61 6c 6c 20 6d 61 |nes. On|.Xall ma|
|00000da0| 63 68 69 6e 65 73 20 74 | 68 65 20 43 20 63 6f 6d |chines t|he C com|
|00000db0| 70 69 6c 65 72 20 70 72 | 6f 64 75 63 65 73 20 66 |piler pr|oduces f|
|00000dc0| 61 73 74 65 72 20 6f 76 | 65 72 61 6c 6c 20 70 65 |aster ov|erall pe|
|00000dd0| 72 66 6f 72 6d 61 6e 63 | 65 2e 0a 58 42 6f 74 68 |rformanc|e..XBoth|
|00000de0| 20 6c 61 6e 67 75 61 67 | 65 73 20 63 61 6c 63 75 | languag|es calcu|
|00000df0| 6c 61 74 65 64 20 74 68 | 65 20 73 61 6d 65 20 72 |lated th|e same r|
|00000e00| 65 73 75 6c 74 73 2e 0a | 58 0a 58 49 6e 20 70 65 |esults..|X.XIn pe|
|00000e10| 72 66 6f 72 6d 69 6e 67 | 20 74 68 65 20 63 6f 6e |rforming| the con|
|00000e20| 76 65 72 73 69 6f 6e 2c | 20 73 6f 6d 65 20 64 69 |version,| some di|
|00000e30| 66 66 69 63 75 6c 74 69 | 65 73 20 75 73 69 6e 67 |fficulti|es using|
|00000e40| 20 74 68 65 20 4c 69 76 | 65 72 6d 6f 72 65 0a 58 | the Liv|ermore.X|
|00000e50| 4c 6f 6f 70 73 20 61 73 | 20 61 20 62 65 6e 63 68 |Loops as| a bench|
|00000e60| 6d 61 72 6b 20 73 75 69 | 74 65 20 77 65 72 65 20 |mark sui|te were |
|00000e70| 75 6e 63 6f 76 65 72 65 | 64 2e 20 20 54 68 65 79 |uncovere|d. They|
|00000e80| 20 69 6e 63 6c 75 64 65 | 20 74 68 65 20 65 61 73 | include| the eas|
|00000e90| 65 20 77 69 74 68 0a 58 | 77 68 69 63 68 20 73 6f |e with.X|which so|
|00000ea0| 6d 65 20 63 6f 6d 70 69 | 6c 65 72 73 20 6f 70 74 |me compi|lers opt|
|00000eb0| 69 6d 69 7a 65 20 61 77 | 61 79 20 74 69 6d 69 6e |imize aw|ay timin|
|00000ec0| 67 20 6c 6f 6f 70 73 20 | 61 6e 64 20 74 68 65 20 |g loops |and the |
|00000ed0| 6c 61 63 6b 20 6f 66 0a | 58 73 65 6e 73 69 74 69 |lack of.|Xsensiti|
|00000ee0| 76 69 74 79 20 69 6e 20 | 74 68 65 20 76 61 6c 69 |vity in |the vali|
|00000ef0| 64 61 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 73 2e |dation r|outines.|
|00000f00| 20 20 54 68 65 73 65 20 | 64 69 66 66 69 63 75 6c | These |difficul|
|00000f10| 74 69 65 73 20 61 72 65 | 0a 58 64 69 73 63 75 73 |ties are|.Xdiscus|
|00000f20| 73 65 64 20 69 6e 20 73 | 65 63 74 69 6f 6e 20 33 |sed in s|ection 3|
|00000f30| 2e 0a 58 0a 58 53 6f 6d | 65 20 73 65 6d 61 6e 74 |..X.XSom|e semant|
|00000f40| 69 63 20 64 69 66 66 65 | 72 65 6e 63 65 73 20 62 |ic diffe|rences b|
|00000f50| 65 74 77 65 65 6e 20 43 | 20 61 6e 64 20 46 6f 72 |etween C| and For|
|00000f60| 74 72 61 6e 20 77 65 72 | 65 20 75 6e 63 6f 76 65 |tran wer|e uncove|
|00000f70| 72 65 64 20 77 68 69 63 | 68 0a 58 68 61 76 65 20 |red whic|h.Xhave |
|00000f80| 61 6e 20 65 66 66 65 63 | 74 20 6f 6e 20 74 68 65 |an effec|t on the|
|00000f90| 20 70 72 65 63 69 73 69 | 6f 6e 20 6f 66 20 74 68 | precisi|on of th|
|00000fa0| 65 20 72 65 73 75 6c 74 | 73 20 67 65 6e 65 72 61 |e result|s genera|
|00000fb0| 74 65 64 20 62 79 20 74 | 68 65 0a 58 70 72 6f 67 |ted by t|he.Xprog|
|00000fc0| 72 61 6d 20 6f 6e 20 63 | 65 72 74 61 69 6e 20 6d |ram on c|ertain m|
|00000fd0| 61 63 68 69 6e 65 73 2e | 20 20 54 68 65 73 65 20 |achines.| These |
|00000fe0| 64 69 66 66 65 72 65 6e | 63 65 73 20 61 72 65 20 |differen|ces are |
|00000ff0| 64 69 73 63 75 73 73 65 | 64 20 69 6e 0a 58 73 65 |discusse|d in.Xse|
|00001000| 63 74 69 6f 6e 20 33 2e | 0a 58 0a 58 54 68 69 73 |ction 3.|.X.XThis|
|00001010| 20 65 78 70 65 72 69 6d | 65 6e 74 20 6d 61 6b 65 | experim|ent make|
|00001020| 73 20 61 6e 20 69 6e 74 | 65 72 65 73 74 69 6e 67 |s an int|eresting|
|00001030| 20 63 6f 6d 6d 65 6e 74 | 20 6f 6e 20 74 68 65 20 | comment| on the |
|00001040| 73 74 61 74 65 20 6f 66 | 0a 58 6f 70 74 69 6d 69 |state of|.Xoptimi|
|00001050| 7a 69 6e 67 20 63 6f 6d | 70 69 6c 65 72 73 2c 20 |zing com|pilers, |
|00001060| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 77 |the abil|ity to w|
|00001070| 72 69 74 65 20 46 6f 72 | 74 72 61 6e 20 69 6e 20 |rite For|tran in |
|00001080| 61 6e 79 20 6c 61 6e 67 | 75 61 67 65 2c 0a 58 61 |any lang|uage,.Xa|
|00001090| 6e 64 20 74 68 65 20 75 | 74 69 6c 69 74 79 20 6f |nd the u|tility o|
|000010a0| 66 20 74 68 65 20 4c 69 | 76 65 72 6d 6f 72 65 20 |f the Li|vermore |
|000010b0| 4c 6f 6f 70 73 20 61 73 | 20 61 20 76 65 63 74 6f |Loops as| a vecto|
|000010c0| 72 20 62 65 6e 63 68 6d | 61 72 6b 2e 0a 58 0a 58 |r benchm|ark..X.X|
|000010d0| 46 6f 72 20 74 68 65 20 | 70 75 72 70 6f 73 65 20 |For the |purpose |
|000010e0| 6f 66 20 74 68 69 73 20 | 70 61 70 65 72 2c 20 46 |of this |paper, F|
|000010f0| 6f 72 74 72 61 6e 20 72 | 65 66 65 72 73 20 74 6f |ortran r|efers to|
|00001100| 20 74 68 65 20 46 6f 72 | 74 72 61 6e 20 6c 61 6e | the For|tran lan|
|00001110| 67 75 61 67 65 0a 58 61 | 73 20 64 65 73 63 72 69 |guage.Xa|s descri|
|00001120| 62 65 64 20 69 6e 20 74 | 68 65 20 46 6f 72 74 72 |bed in t|he Fortr|
|00001130| 61 6e 2d 37 37 20 73 74 | 61 6e 64 61 72 64 5c 63 |an-77 st|andard\c|
|00001140| 69 74 65 7b 41 4e 53 49 | 37 37 7d 20 61 6e 64 20 |ite{ANSI|77} and |
|00001150| 43 20 72 65 66 65 72 73 | 20 74 6f 0a 58 74 68 65 |C refers| to.Xthe|
|00001160| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 6c 61 6e | program|ming lan|
|00001170| 67 75 61 67 65 20 61 73 | 20 64 65 73 63 72 69 62 |guage as| describ|
|00001180| 65 64 20 69 6e 20 5c 63 | 69 74 65 7b 4b 65 72 6e |ed in \c|ite{Kern|
|00001190| 37 38 7d 2e 20 20 52 65 | 66 65 72 65 6e 63 65 73 |78}. Re|ferences|
|000011a0| 20 74 6f 0a 58 73 70 65 | 63 69 66 69 63 20 64 69 | to.Xspe|cific di|
|000011b0| 61 6c 65 63 74 73 20 77 | 69 6c 6c 20 62 65 20 6c |alects w|ill be l|
|000011c0| 61 62 65 6c 65 64 20 61 | 73 20 73 75 63 68 2e 0a |abeled a|s such..|
|000011d0| 58 0a 58 5c 73 65 63 74 | 69 6f 6e 7b 4f 76 65 72 |X.X\sect|ion{Over|
|000011e0| 76 69 65 77 20 6f 66 20 | 54 72 61 6e 73 6c 69 74 |view of |Translit|
|000011f0| 65 72 61 74 69 6f 6e 7d | 0a 58 0a 58 49 6e 20 63 |eration}|.X.XIn c|
|00001200| 6f 6e 76 65 72 74 69 6e | 67 20 74 68 65 20 4c 69 |onvertin|g the Li|
|00001210| 76 65 72 6d 6f 72 65 20 | 4c 6f 6f 70 73 20 66 72 |vermore |Loops fr|
|00001220| 6f 6d 20 46 6f 72 74 72 | 61 6e 20 74 6f 20 43 2c |om Fortr|an to C,|
|00001230| 20 74 68 65 20 6d 61 6a | 6f 72 20 67 6f 61 6c 0a | the maj|or goal.|
|00001240| 58 77 61 73 20 74 6f 20 | 20 70 72 65 73 65 72 76 |Xwas to | preserv|
|00001250| 65 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 46 |e the or|iginal F|
|00001260| 6f 72 74 72 61 6e 20 73 | 65 6d 61 6e 74 69 63 73 |ortran s|emantics|
|00001270| 2e 20 20 53 6f 6d 65 20 | 63 68 61 6e 67 65 73 20 |. Some |changes |
|00001280| 77 65 72 65 0a 58 6e 65 | 63 65 73 73 61 72 79 2c |were.Xne|cessary,|
|00001290| 20 69 6e 63 6c 75 64 69 | 6e 67 3a 0a 58 0a 58 5c | includi|ng:.X.X\|
|000012a0| 62 65 67 69 6e 7b 69 74 | 65 6d 69 7a 65 7d 0a 58 |begin{it|emize}.X|
|000012b0| 0a 58 5c 69 74 65 6d 20 | 54 68 65 20 72 6f 75 74 |.X\item |The rout|
|000012c0| 69 6e 65 20 5c 74 74 20 | 53 50 41 43 45 20 5c 72 |ine \tt |SPACE \r|
|000012d0| 6d 20 77 61 73 20 64 65 | 6c 65 74 65 64 2e 20 20 |m was de|leted. |
|000012e0| 53 69 6e 63 65 20 74 68 | 65 20 70 6f 69 6e 74 65 |Since th|e pointe|
|000012f0| 72 0a 58 61 73 73 69 67 | 6e 6d 65 6e 74 20 69 73 |r.Xassig|nment is|
|00001300| 6e 27 74 20 75 73 65 64 | 20 69 6e 20 74 68 65 20 |n't used| in the |
|00001310| 46 6f 72 74 72 61 6e 20 | 69 6d 70 6c 65 6d 65 6e |Fortran |implemen|
|00001320| 74 61 74 69 6f 6e 2c 20 | 74 68 69 73 20 68 61 73 |tation, |this has|
|00001330| 20 6e 6f 0a 58 65 66 66 | 65 63 74 20 6f 6e 20 74 | no.Xeff|ect on t|
|00001340| 68 65 20 66 69 6e 61 6c | 20 72 65 73 75 6c 74 73 |he final| results|
|00001350| 2e 0a 58 0a 58 5c 69 74 | 65 6d 20 54 68 65 20 76 |..X.X\it|em The v|
|00001360| 61 72 69 61 62 6c 65 20 | 5c 74 74 20 6c 70 20 5c |ariable |\tt lp \|
|00001370| 72 6d 20 77 68 69 63 68 | 20 63 6f 6e 74 72 6f 6c |rm which| control|
|00001380| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00001390| 70 61 73 73 65 73 20 77 | 61 73 0a 58 6d 61 64 65 |passes w|as.Xmade|
|000013a0| 20 61 6e 20 69 6e 70 75 | 74 20 70 61 72 61 6d 65 | an inpu|t parame|
|000013b0| 74 65 72 2e 20 20 54 68 | 65 20 64 65 66 61 75 6c |ter. Th|e defaul|
|000013c0| 74 20 69 73 20 31 30 30 | 20 70 61 73 73 65 73 2e |t is 100| passes.|
|000013d0| 20 20 57 68 65 6e 20 74 | 68 65 20 64 65 66 61 75 | When t|he defau|
|000013e0| 6c 74 0a 58 69 73 20 75 | 73 65 64 2c 20 73 74 61 |lt.Xis u|sed, sta|
|000013f0| 6e 64 61 72 64 20 72 65 | 73 75 6c 74 73 20 61 72 |ndard re|sults ar|
|00001400| 65 20 6f 62 74 61 69 6e | 65 64 2e 0a 58 0a 58 5c |e obtain|ed..X.X\|
|00001410| 69 74 65 6d 20 49 6e 20 | 6b 65 72 6e 65 6c 20 31 |item In |kernel 1|
|00001420| 35 2c 20 61 72 69 74 68 | 6d 65 74 69 63 20 69 66 |5, arith|metic if|
|00001430| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 77 65 72 65 | stateme|nts were|
|00001440| 20 6d 6f 64 69 66 69 65 | 64 20 74 6f 0a 58 69 66 | modifie|d to.Xif|
|00001450| 2d 74 68 65 6e 2d 65 6c | 73 65 20 66 6f 72 6d 73 |-then-el|se forms|
|00001460| 2e 0a 58 0a 58 5c 69 74 | 65 6d 20 41 6c 6c 20 6f |..X.X\it|em All o|
|00001470| 63 63 75 72 72 65 6e 63 | 65 73 20 6f 66 20 74 68 |ccurrenc|es of th|
|00001480| 65 20 66 6f 72 6d 20 5c | 74 74 20 78 2a 2a 32 20 |e form \|tt x**2 |
|00001490| 5c 72 6d 20 77 65 72 65 | 20 72 65 70 6c 61 63 65 |\rm were| replace|
|000014a0| 64 20 62 79 20 5c 74 74 | 0a 58 78 2a 78 2e 0a 58 |d by \tt|.Xx*x..X|
|000014b0| 0a 58 5c 69 74 65 6d 20 | 5c 74 74 20 52 45 50 4f |.X\item |\tt REPO|
|000014c0| 52 54 20 5c 72 6d 20 77 | 61 73 20 74 72 75 6e 63 |RT \rm w|as trunc|
|000014d0| 61 74 65 64 2e 20 20 4f | 6e 6c 79 20 74 68 65 20 |ated. O|nly the |
|000014e0| 66 6c 6f 70 20 72 61 74 | 65 73 20 61 6e 64 20 61 |flop rat|es and a|
|000014f0| 76 65 72 61 67 65 73 0a | 58 61 72 65 20 72 65 70 |verages.|Xare rep|
|00001500| 6f 72 74 65 64 2e 20 20 | 53 69 6e 63 65 20 74 68 |orted. |Since th|
|00001510| 65 20 43 20 76 65 72 73 | 69 6f 6e 20 69 73 20 6f |e C vers|ion is o|
|00001520| 6e 6c 79 20 69 6e 74 65 | 6e 64 65 64 20 61 73 20 |nly inte|nded as |
|00001530| 61 20 63 6f 6d 70 61 72 | 69 73 6f 6e 20 74 6f 0a |a compar|ison to.|
|00001540| 58 46 6f 72 74 72 61 6e | 20 6f 6e 20 74 68 65 20 |XFortran| on the |
|00001550| 73 61 6d 65 20 6d 61 63 | 68 69 6e 65 2c 20 74 68 |same mac|hine, th|
|00001560| 65 20 61 6e 61 6c 79 73 | 69 73 20 70 6f 72 74 69 |e analys|is porti|
|00001570| 6f 6e 20 69 73 20 6e 6f | 74 20 6e 65 65 64 65 64 |on is no|t needed|
|00001580| 2e 0a 58 0a 58 5c 69 74 | 65 6d 20 5c 74 74 20 53 |..X.X\it|em \tt S|
|00001590| 49 47 4e 41 4c 20 5c 72 | 6d 20 77 61 73 20 72 65 |IGNAL \r|m was re|
|000015a0| 69 6d 70 6c 65 6d 65 6e | 74 65 64 20 61 73 20 73 |implemen|ted as s|
|000015b0| 65 76 65 72 61 6c 20 73 | 65 70 61 72 61 74 65 20 |everal s|eparate |
|000015c0| 72 6f 75 74 69 6e 65 73 | 20 74 6f 0a 58 77 6f 72 |routines| to.Xwor|
|000015d0| 6b 20 61 72 6f 75 6e 64 | 20 64 69 66 66 65 72 65 |k around| differe|
|000015e0| 6e 63 65 73 20 69 6e 20 | 43 20 61 6e 64 20 46 6f |nces in |C and Fo|
|000015f0| 72 74 72 61 6e 20 70 61 | 72 61 6d 65 74 65 72 20 |rtran pa|rameter |
|00001600| 70 61 73 73 69 6e 67 2e | 20 20 46 75 72 74 68 65 |passing.| Furthe|
|00001610| 72 2c 0a 58 5c 74 74 20 | 56 45 43 54 4f 52 20 5c |r,.X\tt |VECTOR \|
|00001620| 72 6d 20 77 61 73 20 6d | 6f 64 69 66 69 65 64 20 |rm was m|odified |
|00001630| 74 6f 20 63 61 6c 6c 20 | 5c 74 74 20 6c 73 69 67 |to call |\tt lsig|
|00001640| 6e 61 6c 4e 20 5c 72 6d | 20 66 6f 72 20 65 61 63 |nalN \rm| for eac|
|00001650| 68 20 61 72 72 61 79 2c | 0a 58 73 69 6e 63 65 20 |h array,|.Xsince |
|00001660| 43 20 68 61 73 20 6e 6f | 20 65 71 75 69 76 61 6c |C has no| equival|
|00001670| 65 6e 74 20 74 6f 20 61 | 20 5c 74 74 20 43 4f 4d |ent to a| \tt COM|
|00001680| 4d 4f 4e 20 5c 72 6d 20 | 62 6c 6f 63 6b 2e 20 20 |MON \rm |block. |
|00001690| 5c 74 74 20 53 49 47 4e | 41 4c 20 5c 72 6d 0a 58 |\tt SIGN|AL \rm.X|
|000016a0| 77 61 73 20 72 65 6e 61 | 6d 65 64 20 74 6f 20 5c |was rena|med to \|
|000016b0| 74 74 20 6c 73 69 67 6e | 61 6c 4e 20 5c 72 6d 20 |tt lsign|alN \rm |
|000016c0| 77 68 65 72 65 20 5c 74 | 74 20 4e 20 5c 72 6d 20 |where \t|t N \rm |
|000016d0| 69 73 20 72 65 70 6c 61 | 63 65 64 20 62 79 20 30 |is repla|ced by 0|
|000016e0| 2c 20 31 2c 0a 58 32 2c | 20 6f 72 20 33 20 74 6f |, 1,.X2,| or 3 to|
|000016f0| 20 72 65 70 72 65 73 65 | 6e 74 20 74 68 65 20 6e | represe|nt the n|
|00001700| 75 6d 62 65 72 20 6f 66 | 20 64 69 6d 65 6e 73 69 |umber of| dimensi|
|00001710| 6f 6e 73 20 69 6e 20 74 | 68 65 20 61 72 72 61 79 |ons in t|he array|
|00001720| 20 62 65 69 6e 67 0a 58 | 69 6e 69 74 69 61 6c 69 | being.X|initiali|
|00001730| 7a 65 64 2e 20 20 54 68 | 65 20 73 65 70 61 72 61 |zed. Th|e separa|
|00001740| 74 65 20 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |te routi|nes are |
|00001750| 6e 6f 74 20 73 74 72 69 | 63 74 6c 79 20 6e 65 65 |not stri|ctly nee|
|00001760| 64 65 64 2c 20 62 75 74 | 0a 58 63 6c 61 72 69 66 |ded, but|.Xclarif|
|00001770| 79 20 74 68 65 20 69 6e | 74 65 6e 74 20 6f 66 20 |y the in|tent of |
|00001780| 74 68 65 20 63 6f 64 65 | 2e 0a 58 0a 58 53 69 6e |the code|..X.XSin|
|00001790| 63 65 20 5c 74 74 20 53 | 49 47 4e 41 4c 20 5c 72 |ce \tt S|IGNAL \r|
|000017a0| 6d 20 69 73 20 6e 6f 74 | 20 70 61 72 74 20 6f 66 |m is not| part of|
|000017b0| 20 74 68 65 20 6d 65 61 | 73 75 72 65 64 20 63 6f | the mea|sured co|
|000017c0| 64 65 2c 20 74 68 69 73 | 20 68 61 73 20 6e 6f 0a |de, this| has no.|
|000017d0| 58 65 66 66 65 63 74 20 | 6f 6e 20 74 68 65 20 72 |Xeffect |on the r|
|000017e0| 65 70 6f 72 74 65 64 20 | 70 65 72 66 6f 72 6d 61 |eported |performa|
|000017f0| 6e 63 65 2e 0a 58 0a 58 | 5c 69 74 65 6d 20 54 68 |nce..X.X|\item Th|
|00001800| 65 20 6e 75 6d 62 65 72 | 20 67 65 6e 65 72 61 74 |e number| generat|
|00001810| 69 6f 6e 20 72 6f 75 74 | 69 6e 65 20 75 73 65 64 |ion rout|ine used|
|00001820| 20 62 79 20 5c 74 74 20 | 53 49 47 4e 41 4c 20 5c | by \tt |SIGNAL \|
|00001830| 72 6d 20 77 61 73 0a 58 | 63 61 72 65 66 75 6c 6c |rm was.X|carefull|
|00001840| 79 20 72 65 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |y reimpl|emented |
|00001850| 74 6f 20 64 75 70 6c 69 | 63 61 74 65 20 46 6f 72 |to dupli|cate For|
|00001860| 74 72 61 6e 20 6e 75 6d | 65 72 69 63 20 73 65 6d |tran num|eric sem|
|00001870| 61 6e 74 69 63 73 2e 0a | 58 0a 58 5c 69 74 65 6d |antics..|X.X\item|
|00001880| 20 5c 74 74 20 53 55 4d | 4f 20 5c 72 6d 20 77 61 | \tt SUM|O \rm wa|
|00001890| 73 20 72 65 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |s reimpl|emented |
|000018a0| 61 73 20 5c 74 74 20 73 | 75 6d 6f 2c 20 73 75 6d |as \tt s|umo, sum|
|000018b0| 6f 32 2c 20 5c 72 6d 20 | 61 6e 64 20 5c 74 74 0a |o2, \rm |and \tt.|
|000018c0| 58 73 75 6d 6f 33 20 5c | 72 6d 2c 20 64 65 70 65 |Xsumo3 \|rm, depe|
|000018d0| 6e 64 69 6e 67 20 6f 6e | 20 74 68 65 20 6e 75 6d |nding on| the num|
|000018e0| 62 65 72 20 6f 66 20 64 | 69 6d 65 6e 73 69 6f 6e |ber of d|imension|
|000018f0| 73 20 69 6e 20 74 68 65 | 20 61 72 72 61 79 20 62 |s in the| array b|
|00001900| 65 69 6e 67 0a 58 69 6e | 69 74 69 61 6c 69 7a 65 |eing.Xin|itialize|
|00001910| 64 2e 20 20 41 73 20 77 | 69 74 68 20 73 69 67 6e |d. As w|ith sign|
|00001920| 61 6c 2c 20 74 68 69 73 | 20 77 61 73 20 64 6f 6e |al, this| was don|
|00001930| 65 20 66 6f 72 20 63 6c | 61 72 69 74 79 20 61 6e |e for cl|arity an|
|00001940| 64 20 69 73 20 69 6e 20 | 63 6f 64 65 0a 58 77 68 |d is in |code.Xwh|
|00001950| 69 63 68 20 69 73 20 6e | 6f 74 20 70 61 72 74 20 |ich is n|ot part |
|00001960| 6f 66 20 74 68 61 74 20 | 62 65 69 6e 67 20 6d 65 |of that |being me|
|00001970| 61 73 75 72 65 64 2e 0a | 58 0a 58 5c 69 74 65 6d |asured..|X.X\item|
|00001980| 20 41 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 | A comma|nd line |
|00001990| 6f 70 74 69 6f 6e 20 77 | 61 73 20 61 64 64 65 64 |option w|as added|
|000019a0| 20 61 6c 6c 6f 77 69 6e | 67 20 6f 6e 6c 79 20 73 | allowin|g only s|
|000019b0| 70 65 63 69 66 69 65 64 | 20 6c 6f 6f 70 73 20 74 |pecified| loops t|
|000019c0| 6f 0a 58 62 65 20 72 75 | 6e 2e 20 20 54 68 69 73 |o.Xbe ru|n. This|
|000019d0| 20 77 61 73 20 64 6f 6e | 65 20 66 6f 72 20 64 65 | was don|e for de|
|000019e0| 62 75 67 67 69 6e 67 2e | 20 20 54 68 65 20 72 65 |bugging.| The re|
|000019f0| 70 6f 72 74 65 64 20 72 | 65 73 75 6c 74 73 20 61 |ported r|esults a|
|00001a00| 72 65 20 66 72 6f 6d 20 | 61 0a 58 73 69 6e 67 6c |re from |a.Xsingl|
|00001a10| 65 20 72 75 6e 20 69 6e | 20 77 68 69 63 68 20 61 |e run in| which a|
|00001a20| 6c 6c 20 6c 6f 6f 70 73 | 20 77 65 72 65 20 70 65 |ll loops| were pe|
|00001a30| 72 66 6f 72 6d 65 64 2e | 0a 58 0a 58 5c 69 74 65 |rformed.|.X.X\ite|
|00001a40| 6d 20 41 6c 6c 20 61 72 | 72 61 79 20 72 65 66 65 |m All ar|ray refe|
|00001a50| 72 65 6e 63 65 73 20 77 | 65 72 65 20 63 6f 6e 76 |rences w|ere conv|
|00001a60| 65 72 74 65 64 20 66 72 | 6f 6d 20 74 68 65 20 31 |erted fr|om the 1|
|00001a70| 20 62 61 73 65 64 20 73 | 75 62 73 63 72 69 70 74 | based s|ubscript|
|00001a80| 0a 58 75 73 65 64 20 62 | 79 20 46 6f 72 74 72 61 |.Xused b|y Fortra|
|00001a90| 6e 20 74 6f 20 30 20 62 | 61 73 65 64 20 73 75 62 |n to 0 b|ased sub|
|00001aa0| 73 63 72 69 70 74 73 20 | 61 73 20 75 73 65 64 20 |scripts |as used |
|00001ab0| 62 79 20 43 2e 20 20 54 | 68 69 73 20 77 61 73 20 |by C. T|his was |
|00001ac0| 64 6f 6e 65 20 74 6f 0a | 58 61 76 6f 69 64 20 68 |done to.|Xavoid h|
|00001ad0| 6f 6c 65 73 20 69 6e 20 | 74 68 65 20 43 20 61 72 |oles in |the C ar|
|00001ae0| 72 61 79 73 20 77 68 69 | 63 68 20 77 6f 75 6c 64 |rays whi|ch would|
|00001af0| 20 68 61 76 65 20 72 65 | 73 75 6c 74 65 64 20 69 | have re|sulted i|
|00001b00| 6e 20 64 69 66 66 65 72 | 65 6e 74 0a 58 6d 65 6d |n differ|ent.Xmem|
|00001b10| 6f 72 79 20 75 73 65 20 | 70 61 74 74 65 72 6e 73 |ory use |patterns|
|00001b20| 2e 20 20 54 68 69 73 20 | 77 6f 75 6c 64 20 68 61 |. This |would ha|
|00001b30| 76 65 20 61 6e 20 6f 63 | 63 61 73 69 6f 6e 61 6c |ve an oc|casional|
|00001b40| 20 73 6d 61 6c 6c 20 61 | 64 76 65 72 73 65 0a 58 | small a|dverse.X|
|00001b50| 69 6d 70 61 63 74 20 6f | 6e 20 74 68 65 20 43 20 |impact o|n the C |
|00001b60| 76 65 72 73 69 6f 6e 2c | 20 73 69 6e 63 65 20 73 |version,| since s|
|00001b70| 6f 6d 65 20 61 72 72 61 | 79 20 72 65 66 65 72 65 |ome arra|y refere|
|00001b80| 6e 63 65 73 20 6e 6f 77 | 20 69 6e 76 6f 6c 76 65 |nces now| involve|
|00001b90| 0a 58 73 75 62 74 72 61 | 63 74 69 6e 67 20 6f 6e |.Xsubtra|cting on|
|00001ba0| 65 20 66 72 6f 6d 20 74 | 68 65 20 69 6e 64 69 63 |e from t|he indic|
|00001bb0| 65 73 2e 0a 58 0a 58 5c | 65 6e 64 7b 69 74 65 6d |es..X.X\|end{item|
|00001bc0| 69 7a 65 7d 0a 58 0a 58 | 41 20 6d 61 6a 6f 72 20 |ize}.X.X|A major |
|00001bd0| 63 68 61 6e 67 65 20 77 | 68 69 63 68 20 77 61 73 |change w|hich was|
|00001be0| 6e 27 74 20 6d 61 64 65 | 20 77 61 73 20 74 72 61 |n't made| was tra|
|00001bf0| 6e 73 70 6f 73 69 6e 67 | 20 61 72 72 61 79 20 69 |nsposing| array i|
|00001c00| 6e 64 69 63 65 73 2e 0a | 58 0a 58 5c 73 65 63 74 |ndices..|X.X\sect|
|00001c10| 69 6f 6e 7b 4c 61 6e 67 | 75 61 67 65 20 44 69 66 |ion{Lang|uage Dif|
|00001c20| 66 65 72 65 6e 63 65 73 | 20 45 6e 63 6f 75 6e 74 |ferences| Encount|
|00001c30| 65 72 65 64 7d 0a 58 0a | 58 54 68 72 65 65 20 6d |ered}.X.|XThree m|
|00001c40| 61 6a 6f 72 20 64 69 66 | 66 65 72 65 6e 63 65 73 |ajor dif|ferences|
|00001c50| 20 62 65 74 77 65 65 6e | 20 46 6f 72 74 72 61 6e | between| Fortran|
|00001c60| 20 61 6e 64 20 43 20 77 | 65 72 65 20 65 6e 63 6f | and C w|ere enco|
|00001c70| 75 6e 74 65 72 65 64 20 | 77 68 69 63 68 0a 58 68 |untered |which.Xh|
|00001c80| 61 76 65 20 61 6e 20 69 | 6d 70 61 63 74 20 6f 6e |ave an i|mpact on|
|00001c90| 20 74 68 65 20 74 72 61 | 6e 73 6c 69 74 65 72 61 | the tra|nslitera|
|00001ca0| 74 69 6f 6e 2e 0a 58 0a | 58 5c 62 65 67 69 6e 7b |tion..X.|X\begin{|
|00001cb0| 69 74 65 6d 69 7a 65 7d | 0a 58 0a 58 5c 69 74 65 |itemize}|.X.X\ite|
|00001cc0| 6d 20 44 69 66 66 65 72 | 65 6e 74 20 61 72 72 61 |m Differ|ent arra|
|00001cd0| 79 20 69 6e 64 65 78 20 | 62 61 73 69 73 20 61 72 |y index |basis ar|
|00001ce0| 65 20 75 73 65 64 20 62 | 79 20 74 68 65 20 6c 61 |e used b|y the la|
|00001cf0| 6e 67 75 61 67 65 73 2e | 20 20 0a 58 5c 69 74 65 |nguages.| .X\ite|
|00001d00| 6d 20 46 6f 72 74 72 61 | 6e 20 75 73 65 73 20 5c |m Fortra|n uses \|
|00001d10| 74 74 20 43 4f 4d 4d 4f | 4e 20 5c 72 6d 20 62 6c |tt COMMO|N \rm bl|
|00001d20| 6f 63 6b 73 20 74 6f 20 | 61 6c 6c 6f 63 61 74 65 |ocks to |allocate|
|00001d30| 20 67 6c 6f 62 61 6c 20 | 64 61 74 61 2c 0a 58 77 | global |data,.Xw|
|00001d40| 68 69 6c 65 20 43 20 6d | 65 72 65 6c 79 20 72 65 |hile C m|erely re|
|00001d50| 71 75 69 72 65 73 20 64 | 65 63 6c 61 72 69 6e 67 |quires d|eclaring|
|00001d60| 20 69 74 2e 20 20 0a 58 | 5c 69 74 65 6d 20 43 20 | it. .X|\item C |
|00001d70| 61 6e 64 20 46 6f 72 74 | 72 61 6e 20 68 61 76 65 |and Fort|ran have|
|00001d80| 20 64 69 66 66 65 72 65 | 6e 74 20 72 75 6c 65 73 | differe|nt rules|
|00001d90| 20 66 6f 72 20 61 72 69 | 74 68 6d 65 74 69 63 20 | for ari|thmetic |
|00001da0| 70 72 65 63 69 73 69 6f | 6e 2e 20 20 53 6f 6d 65 |precisio|n. Some|
|00001db0| 0a 58 6d 69 6e 6f 72 20 | 64 69 66 66 65 72 65 6e |.Xminor |differen|
|00001dc0| 63 65 73 20 61 6c 73 6f | 20 65 78 69 73 74 2e 0a |ces also| exist..|
|00001dd0| 58 0a 58 5c 65 6e 64 7b | 69 74 65 6d 69 7a 65 7d |X.X\end{|itemize}|
|00001de0| 0a 58 0a 58 45 61 63 68 | 20 6f 66 20 74 68 65 73 |.X.XEach| of thes|
|00001df0| 65 20 77 69 6c 6c 20 62 | 65 20 64 69 73 63 75 73 |e will b|e discus|
|00001e00| 73 65 64 20 69 6e 20 74 | 75 72 6e 2e 0a 58 0a 58 |sed in t|urn..X.X|
|00001e10| 54 68 65 20 61 72 72 61 | 79 20 69 6e 64 65 78 20 |The arra|y index |
|00001e20| 62 61 73 69 73 20 64 69 | 66 66 65 72 65 6e 63 65 |basis di|fference|
|00001e30| 20 68 61 73 20 74 77 6f | 20 69 6d 70 6c 69 63 61 | has two| implica|
|00001e40| 74 69 6f 6e 73 2e 20 20 | 4f 6e 65 20 6f 66 20 74 |tions. |One of t|
|00001e50| 68 65 73 65 20 69 73 0a | 58 74 68 65 20 77 61 79 |hese is.|Xthe way|
|00001e60| 20 69 6e 20 77 68 69 63 | 68 20 69 6e 64 69 63 65 | in whic|h indice|
|00001e70| 73 20 72 65 6c 61 74 65 | 20 74 6f 20 6d 65 6d 6f |s relate| to memo|
|00001e80| 72 79 20 6c 6f 63 61 74 | 69 6f 6e 73 20 69 6e 20 |ry locat|ions in |
|00001e90| 6d 75 6c 74 69 70 6c 65 | 0a 58 64 69 6d 65 6e 73 |multiple|.Xdimens|
|00001ea0| 69 6f 6e 20 61 72 72 61 | 79 73 2c 20 61 6e 64 20 |ion arra|ys, and |
|00001eb0| 74 68 65 20 6f 74 68 65 | 72 20 69 73 20 74 68 65 |the othe|r is the|
|00001ec0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 69 6e 20 61 | differe|nce in a|
|00001ed0| 72 72 61 79 20 62 61 73 | 69 6e 67 2e 0a 58 43 20 |rray bas|ing..XC |
|00001ee0| 61 72 72 61 79 73 20 61 | 72 65 20 61 6c 77 61 79 |arrays a|re alway|
|00001ef0| 73 20 69 6e 64 65 78 65 | 64 20 66 72 6f 6d 20 30 |s indexe|d from 0|
|00001f00| 20 74 6f 20 5c 74 74 20 | 4e 20 2d 20 31 20 5c 72 | to \tt |N - 1 \r|
|00001f10| 6d 20 77 68 65 72 65 20 | 5c 74 74 20 4e 20 5c 72 |m where |\tt N \r|
|00001f20| 6d 20 69 73 0a 58 74 68 | 65 20 6e 75 6d 62 65 72 |m is.Xth|e number|
|00001f30| 20 6f 66 20 65 6c 65 6d | 65 6e 74 73 20 64 65 63 | of elem|ents dec|
|00001f40| 6c 61 72 65 64 20 66 6f | 72 20 74 68 61 74 20 69 |lared fo|r that i|
|00001f50| 6e 64 65 78 20 6f 66 20 | 74 68 65 20 61 72 72 61 |ndex of |the arra|
|00001f60| 79 2e 20 20 54 68 65 0a | 58 64 65 66 61 75 6c 74 |y. The.|Xdefault|
|00001f70| 20 62 61 73 69 6e 67 20 | 69 6e 20 46 6f 72 74 72 | basing |in Fortr|
|00001f80| 61 6e 20 69 73 20 74 6f | 20 69 6e 64 65 78 20 66 |an is to| index f|
|00001f90| 72 6f 6d 20 31 20 74 6f | 20 5c 74 74 20 4e 2c 20 |rom 1 to| \tt N, |
|00001fa0| 5c 72 6d 20 61 6c 74 68 | 6f 75 67 68 20 30 0a 58 |\rm alth|ough 0.X|
|00001fb0| 62 61 73 69 6e 67 20 69 | 73 20 61 6e 20 6f 70 74 |basing i|s an opt|
|00001fc0| 69 6f 6e 2e 20 20 41 6c | 6c 20 6f 66 20 74 68 65 |ion. Al|l of the|
|00001fd0| 20 61 72 72 61 79 73 20 | 69 6e 20 74 68 65 20 4c | arrays |in the L|
|00001fe0| 69 76 65 72 6d 6f 72 65 | 20 4c 6f 6f 70 73 20 61 |ivermore| Loops a|
|00001ff0| 72 65 20 31 0a 58 62 61 | 73 65 64 2e 20 20 49 6e |re 1.Xba|sed. In|
|00002000| 20 74 68 65 20 74 72 61 | 6e 73 6c 69 74 65 72 61 | the tra|nslitera|
|00002010| 74 69 6f 6e 2c 20 74 68 | 69 73 20 77 61 73 20 65 |tion, th|is was e|
|00002020| 78 70 6c 69 63 69 74 6c | 79 20 61 64 6a 75 73 74 |xplicitl|y adjust|
|00002030| 65 64 20 66 6f 72 2e 20 | 20 49 6e 0a 58 74 68 65 |ed for. | In.Xthe|
|00002040| 20 6d 61 69 6e 2c 20 74 | 68 69 73 20 63 6f 6e 73 | main, t|his cons|
|00002050| 69 73 74 73 20 6f 66 20 | 61 64 6a 75 73 74 69 6e |ists of |adjustin|
|00002060| 67 20 6c 6f 6f 70 20 69 | 6e 64 69 63 65 73 20 74 |g loop i|ndices t|
|00002070| 6f 20 72 75 6e 20 66 72 | 6f 6d 20 30 20 74 6f 20 |o run fr|om 0 to |
|00002080| 5c 74 74 0a 58 4e 20 2d | 20 31 20 5c 72 6d 20 72 |\tt.XN -| 1 \rm r|
|00002090| 61 74 68 65 72 20 74 68 | 61 6e 20 66 72 6f 6d 20 |ather th|an from |
|000020a0| 31 20 74 6f 20 5c 74 74 | 20 4e 20 5c 72 6d 20 61 |1 to \tt| N \rm a|
|000020b0| 6e 64 20 73 75 62 74 72 | 61 63 74 69 6e 67 20 31 |nd subtr|acting 1|
|000020c0| 20 66 72 6f 6d 0a 58 63 | 6f 6e 73 74 61 6e 74 20 | from.Xc|onstant |
|000020d0| 69 6e 64 69 63 65 73 20 | 61 73 20 70 61 72 74 20 |indices |as part |
|000020e0| 6f 66 20 74 68 65 20 74 | 72 61 6e 73 6c 69 74 65 |of the t|ranslite|
|000020f0| 72 61 74 69 6f 6e 2e 0a | 58 0a 58 54 68 69 73 20 |ration..|X.XThis |
|00002100| 63 61 6e 20 61 6c 73 6f | 20 62 65 20 61 20 70 72 |can also| be a pr|
|00002110| 6f 62 6c 65 6d 20 77 68 | 65 6e 20 69 6e 74 65 67 |oblem wh|en integ|
|00002120| 65 72 20 76 61 6c 75 65 | 73 20 61 72 65 20 63 61 |er value|s are ca|
|00002130| 6c 63 75 6c 61 74 65 64 | 20 62 79 20 61 0a 58 70 |lculated| by a.Xp|
|00002140| 72 6f 67 72 61 6d 20 61 | 6e 64 20 74 68 65 6e 20 |rogram a|nd then |
|00002150| 75 73 65 64 20 61 73 20 | 6c 6f 6f 70 20 69 6e 64 |used as |loop ind|
|00002160| 69 63 65 73 2e 20 20 41 | 6e 20 61 74 74 65 6d 70 |ices. A|n attemp|
|00002170| 74 20 77 61 73 20 6d 61 | 64 65 20 74 6f 20 66 69 |t was ma|de to fi|
|00002180| 6e 64 0a 58 61 6c 6c 20 | 73 75 63 68 20 70 6c 61 |nd.Xall |such pla|
|00002190| 63 65 73 20 61 6e 64 20 | 63 6f 6e 76 65 72 74 20 |ces and |convert |
|000021a0| 74 68 65 6d 20 61 70 70 | 72 6f 70 72 69 61 74 65 |them app|ropriate|
|000021b0| 6c 79 2e 20 20 49 6e 20 | 61 20 66 65 77 20 63 61 |ly. In |a few ca|
|000021c0| 73 65 73 2c 20 74 68 65 | 0a 58 63 61 6c 63 75 6c |ses, the|.Xcalcul|
|000021d0| 61 74 69 6f 6e 73 20 77 | 65 72 65 20 6c 65 66 74 |ations w|ere left|
|000021e0| 20 61 6c 6f 6e 65 2c 20 | 61 6e 64 20 31 20 77 61 | alone, |and 1 wa|
|000021f0| 73 20 73 75 62 74 72 61 | 63 74 65 64 20 77 68 65 |s subtra|cted whe|
|00002200| 6e 20 74 68 65 20 69 6e | 74 65 67 65 72 0a 58 76 |n the in|teger.Xv|
|00002210| 61 72 69 61 62 6c 65 20 | 77 61 73 20 75 73 65 64 |ariable |was used|
|00002220| 20 61 73 20 61 20 73 75 | 62 73 63 72 69 70 74 2e | as a su|bscript.|
|00002230| 0a 58 0a 58 54 68 65 20 | 6f 74 68 65 72 20 64 69 |.X.XThe |other di|
|00002240| 66 66 65 72 65 6e 63 65 | 20 69 6e 20 61 72 72 61 |fference| in arra|
|00002250| 79 73 20 68 61 73 20 74 | 6f 20 64 6f 20 77 69 74 |ys has t|o do wit|
|00002260| 68 20 6d 75 6c 74 69 70 | 6c 65 20 64 69 6d 65 6e |h multip|le dimen|
|00002270| 73 69 6f 6e 0a 58 61 72 | 72 61 79 73 2e 20 20 46 |sion.Xar|rays. F|
|00002280| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|00002290| 46 6f 72 74 72 61 6e 20 | 61 72 72 61 79 0a 58 0a |Fortran |array.X.|
|000022a0| 58 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |X\begin{|verbatim|
|000022b0| 7d 0a 58 20 20 20 20 20 | 20 44 49 4d 45 4e 53 49 |}.X | DIMENSI|
|000022c0| 4f 4e 20 41 28 32 2c 32 | 29 0a 58 5c 65 6e 64 7b |ON A(2,2|).X\end{|
|000022d0| 76 65 72 62 61 74 69 6d | 7d 0a 58 0a 58 5c 6e 6f |verbatim|}.X.X\no|
|000022e0| 69 6e 64 65 6e 74 0a 58 | 69 73 20 73 74 6f 72 65 |indent.X|is store|
|000022f0| 64 20 69 6e 20 61 73 63 | 65 6e 64 69 6e 67 20 6d |d in asc|ending m|
|00002300| 65 6d 6f 72 79 20 61 64 | 64 72 65 73 73 65 73 20 |emory ad|dresses |
|00002310| 61 73 20 5c 74 74 20 41 | 28 31 2c 31 29 2c 20 41 |as \tt A|(1,1), A|
|00002320| 28 32 2c 31 29 2c 20 41 | 28 31 2c 32 29 2c 0a 58 |(2,1), A|(1,2),.X|
|00002330| 41 28 32 2c 32 29 20 5c | 72 6d 20 66 72 6f 6d 20 |A(2,2) \|rm from |
|00002340| 6c 6f 77 20 61 64 64 72 | 65 73 73 20 74 6f 20 68 |low addr|ess to h|
|00002350| 69 67 68 20 61 64 64 72 | 65 73 73 2e 20 20 54 68 |igh addr|ess. Th|
|00002360| 65 20 65 71 75 69 76 61 | 6c 65 6e 74 20 43 20 61 |e equiva|lent C a|
|00002370| 72 72 61 79 0a 58 0a 58 | 5c 62 65 67 69 6e 7b 76 |rray.X.X|\begin{v|
|00002380| 65 72 62 61 74 69 6d 7d | 0a 58 20 20 66 6c 6f 61 |erbatim}|.X floa|
|00002390| 74 20 61 5b 32 5d 5b 32 | 5d 3b 0a 58 5c 65 6e 64 |t a[2][2|];.X\end|
|000023a0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 58 0a 58 5c 6e |{verbati|m}.X.X\n|
|000023b0| 6f 69 6e 64 65 6e 74 0a | 58 69 73 20 73 74 6f 72 |oindent.|Xis stor|
|000023c0| 65 64 20 61 73 20 5c 74 | 74 20 61 5b 30 5d 5b 30 |ed as \t|t a[0][0|
|000023d0| 5d 2c 20 61 5b 30 5d 5b | 31 5d 2c 20 61 5b 31 5d |], a[0][|1], a[1]|
|000023e0| 5b 30 5d 2c 20 61 5b 31 | 5d 5b 31 5d 20 5c 72 6d |[0], a[1|][1] \rm|
|000023f0| 20 66 72 6f 6d 20 6c 6f | 77 0a 58 61 64 64 72 65 | from lo|w.Xaddre|
|00002400| 73 73 20 74 6f 20 68 69 | 67 68 20 61 64 64 72 65 |ss to hi|gh addre|
|00002410| 73 73 2e 20 20 41 20 63 | 6f 6d 70 6c 65 74 65 20 |ss. A c|omplete |
|00002420| 74 72 61 6e 73 6c 69 74 | 65 72 61 74 69 6f 6e 20 |translit|eration |
|00002430| 77 6f 75 6c 64 20 74 72 | 61 6e 73 70 6f 73 65 0a |would tr|anspose.|
|00002440| 58 69 6e 64 69 63 65 73 | 20 66 72 6f 6d 20 6c 65 |Xindices| from le|
|00002450| 66 74 20 74 6f 20 72 69 | 67 68 74 20 74 6f 20 70 |ft to ri|ght to p|
|00002460| 72 65 73 65 72 76 65 20 | 74 68 65 20 61 63 74 75 |reserve |the actu|
|00002470| 61 6c 20 6d 65 6d 6f 72 | 79 20 6f 72 64 65 72 69 |al memor|y orderi|
|00002480| 6e 67 2e 0a 58 54 68 69 | 73 20 77 61 73 20 6e 6f |ng..XThi|s was no|
|00002490| 74 20 64 6f 6e 65 20 69 | 6e 20 74 68 69 73 20 74 |t done i|n this t|
|000024a0| 72 61 6e 73 6c 69 74 65 | 72 61 74 69 6f 6e 2e 20 |ranslite|ration. |
|000024b0| 20 41 73 73 75 6d 69 6e | 67 20 74 68 61 74 20 74 | Assumin|g that t|
|000024c0| 68 65 20 6f 72 69 67 69 | 6e 61 6c 0a 58 46 6f 72 |he origi|nal.XFor|
|000024d0| 74 72 61 6e 20 68 61 64 | 20 62 65 65 6e 20 63 61 |tran had| been ca|
|000024e0| 72 65 66 75 6c 6c 79 20 | 63 6f 64 65 64 20 66 6f |refully |coded fo|
|000024f0| 72 20 6d 65 6d 6f 72 79 | 20 61 63 63 65 73 73 2c |r memory| access,|
|00002500| 20 74 68 69 73 20 77 6f | 75 6c 64 20 63 61 75 73 | this wo|uld caus|
|00002510| 65 20 61 0a 58 64 65 67 | 72 61 64 61 74 69 6f 6e |e a.Xdeg|radation|
|00002520| 20 6f 66 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 | of perf|ormance |
|00002530| 6f 66 20 74 68 65 20 43 | 20 63 6f 64 65 20 6f 6e |of the C| code on|
|00002540| 20 73 6f 6d 65 20 73 79 | 73 74 65 6d 73 2e 0a 58 | some sy|stems..X|
|00002550| 0a 58 54 68 65 20 4c 69 | 76 65 72 6d 6f 72 65 20 |.XThe Li|vermore |
|00002560| 4c 6f 6f 70 73 20 75 74 | 69 6c 69 7a 65 20 74 68 |Loops ut|ilize th|
|00002570| 65 20 66 61 69 72 6c 79 | 20 63 6f 6d 6d 6f 6e 20 |e fairly| common |
|00002580| 46 6f 72 74 72 61 6e 20 | 70 72 61 63 74 69 63 65 |Fortran |practice|
|00002590| 20 6f 66 0a 58 69 6e 63 | 6c 75 64 69 6e 67 20 61 | of.Xinc|luding a|
|000025a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 72 65 6c 61 74 | number |of relat|
|000025b0| 65 64 20 69 74 65 6d 73 | 20 74 6f 67 65 74 68 65 |ed items| togethe|
|000025c0| 72 20 69 6e 20 61 20 5c | 74 74 20 43 4f 4d 4d 4f |r in a \|tt COMMO|
|000025d0| 4e 20 5c 72 6d 0a 58 62 | 6c 6f 63 6b 20 69 6e 20 |N \rm.Xb|lock in |
|000025e0| 6f 72 64 65 72 20 74 6f | 20 6d 61 6b 65 20 67 6c |order to| make gl|
|000025f0| 6f 62 61 6c 20 72 65 66 | 65 72 65 6e 63 65 73 20 |obal ref|erences |
|00002600| 74 6f 20 74 68 6f 73 65 | 20 69 74 65 6d 73 20 70 |to those| items p|
|00002610| 6f 73 73 69 62 6c 65 2e | 0a 58 0a 58 4f 6e 65 20 |ossible.|.X.XOne |
|00002620| 6f 66 20 74 68 65 20 73 | 69 64 65 20 65 66 66 65 |of the s|ide effe|
|00002630| 63 74 73 20 6f 66 20 74 | 68 69 73 20 70 72 61 63 |cts of t|his prac|
|00002640| 74 69 63 65 20 69 73 20 | 74 68 61 74 20 46 6f 72 |tice is |that For|
|00002650| 74 72 61 6e 20 72 65 71 | 75 69 72 65 73 20 74 68 |tran req|uires th|
|00002660| 61 74 0a 58 69 74 65 6d | 73 20 77 68 69 63 68 20 |at.Xitem|s which |
|00002670| 61 72 65 20 61 64 6a 61 | 63 65 6e 74 6c 79 20 6c |are adja|cently l|
|00002680| 69 73 74 65 64 20 69 6e | 20 61 20 63 6f 6d 6d 6f |isted in| a commo|
|00002690| 6e 20 62 6c 6f 63 6b 20 | 61 72 65 20 61 64 6a 61 |n block |are adja|
|000026a0| 63 65 6e 74 6c 79 0a 58 | 61 6c 6c 6f 63 61 74 65 |cently.X|allocate|
|000026b0| 64 20 69 6e 20 6d 65 6d | 6f 72 79 2e 20 20 54 68 |d in mem|ory. Th|
|000026c0| 69 73 20 6d 61 6b 65 73 | 20 70 6f 73 73 69 62 6c |is makes| possibl|
|000026d0| 65 20 74 68 65 20 70 72 | 61 63 74 69 63 65 20 6f |e the pr|actice o|
|000026e0| 66 20 69 6e 69 74 69 61 | 6c 69 7a 69 6e 67 0a 58 |f initia|lizing.X|
|000026f0| 61 6e 20 65 6e 74 69 72 | 65 20 5c 74 74 20 43 4f |an entir|e \tt CO|
|00002700| 4d 4d 4f 4e 20 5c 72 6d | 20 62 6c 6f 63 6b 20 62 |MMON \rm| block b|
|00002710| 79 20 74 72 65 61 74 69 | 6e 67 20 69 74 20 61 73 |y treati|ng it as|
|00002720| 20 61 20 73 69 6e 67 6c | 65 20 61 72 72 61 79 20 | a singl|e array |
|00002730| 69 6e 20 61 6e 0a 58 69 | 6e 69 74 69 61 6c 69 7a |in an.Xi|nitializ|
|00002740| 61 74 69 6f 6e 20 72 6f | 75 74 69 6e 65 2e 20 20 |ation ro|utine. |
|00002750| 46 69 67 75 72 65 7e 31 | 20 73 68 6f 77 73 20 61 |Figure~1| shows a|
|00002760| 6e 20 65 78 61 6d 70 6c | 65 20 69 6e 20 46 6f 72 |n exampl|e in For|
|00002770| 74 72 61 6e 2e 0a 58 0a | 58 5c 62 65 67 69 6e 7b |tran..X.|X\begin{|
|00002780| 66 69 67 75 72 65 7d 5b | 68 74 5d 0a 58 5c 73 6d |figure}[|ht].X\sm|
|00002790| 61 6c 6c 0a 58 5c 63 61 | 70 74 69 6f 6e 7b 5c 74 |all.X\ca|ption{\t|
|000027a0| 74 20 43 4f 4d 4d 4f 4e | 20 5c 72 6d 20 75 73 61 |t COMMON| \rm usa|
|000027b0| 67 65 20 69 6e 20 46 6f | 72 74 72 61 6e 7d 0a 58 |ge in Fo|rtran}.X|
|000027c0| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|000027d0| 0a 58 0a 58 43 0a 58 43 | 20 54 48 49 53 20 52 4f |.X.XC.XC| THIS RO|
|000027e0| 55 54 49 4e 45 20 55 53 | 45 53 20 54 48 52 45 45 |UTINE US|ES THREE|
|000027f0| 20 45 4c 45 4d 45 4e 54 | 53 20 4f 46 20 41 20 43 | ELEMENT|S OF A C|
|00002800| 4f 4d 4d 4f 4e 20 42 4c | 4f 43 4b 20 42 59 20 53 |OMMON BL|OCK BY S|
|00002810| 4f 4d 45 20 4e 41 4d 45 | 0a 58 43 0a 58 20 20 20 |OME NAME|.XC.X |
|00002820| 20 20 20 43 4f 4d 4d 4f | 4e 20 2f 43 42 4c 4f 43 | COMMO|N /CBLOC|
|00002830| 4b 2f 20 41 31 2c 20 42 | 31 2c 20 43 31 0a 58 20 |K/ A1, B|1, C1.X |
|00002840| 20 20 20 20 20 53 55 42 | 52 4f 55 54 49 4e 45 20 | SUB|ROUTINE |
|00002850| 41 52 4f 55 54 49 4e 45 | 0a 58 43 0a 58 43 20 55 |AROUTINE|.XC.XC U|
|00002860| 53 45 20 41 31 2c 20 42 | 31 2c 20 43 31 0a 58 43 |SE A1, B|1, C1.XC|
|00002870| 0a 58 20 20 20 20 20 20 | 52 45 54 55 52 4e 0a 58 |.X |RETURN.X|
|00002880| 20 20 20 20 20 20 45 4e | 44 0a 58 43 0a 58 43 20 | EN|D.XC.XC |
|00002890| 54 48 49 53 20 52 4f 55 | 54 49 4e 45 20 49 4e 49 |THIS ROU|TINE INI|
|000028a0| 54 49 41 4c 49 5a 45 53 | 20 54 48 45 20 43 4f 4d |TIALIZES| THE COM|
|000028b0| 4d 4f 4e 20 42 4c 4f 43 | 4b 20 55 53 49 4e 47 20 |MON BLOC|K USING |
|000028c0| 41 4e 20 41 52 52 41 59 | 0a 58 43 0a 58 20 20 20 |AN ARRAY|.XC.X |
|000028d0| 20 20 20 43 4f 4d 4d 4f | 4e 20 2f 43 42 4c 4f 43 | COMMO|N /CBLOC|
|000028e0| 4b 2f 20 41 28 33 29 0a | 58 20 20 20 20 20 20 53 |K/ A(3).|X S|
|000028f0| 55 42 52 4f 55 54 49 4e | 45 20 49 4e 49 54 0a 58 |UBROUTIN|E INIT.X|
|00002900| 20 20 20 20 20 20 44 4f | 20 31 30 20 49 20 3d 20 | DO| 10 I = |
|00002910| 31 2c 20 33 0a 58 20 20 | 20 31 30 20 41 28 49 29 |1, 3.X | 10 A(I)|
|00002920| 20 3d 20 49 0a 58 20 20 | 20 20 20 20 52 45 54 55 | = I.X | RETU|
|00002930| 52 4e 0a 58 20 20 20 20 | 20 20 45 4e 44 0a 58 0a |RN.X | END.X.|
|00002940| 58 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |X\end{ve|rbatim}.|
|00002950| 58 5c 65 6e 64 7b 66 69 | 67 75 72 65 7d 0a 58 0a |X\end{fi|gure}.X.|
|00002960| 58 54 68 65 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |XThe ini|tializat|
|00002970| 69 6f 6e 20 72 6f 75 74 | 69 6e 65 73 20 69 6e 20 |ion rout|ines in |
|00002980| 74 68 65 20 4c 69 76 65 | 72 6d 6f 72 65 20 4c 6f |the Live|rmore Lo|
|00002990| 6f 70 73 20 74 61 6b 65 | 20 61 64 76 61 6e 74 61 |ops take| advanta|
|000029a0| 67 65 20 6f 66 0a 58 74 | 68 69 73 2e 20 20 54 68 |ge of.Xt|his. Th|
|000029b0| 65 72 65 20 61 72 65 20 | 73 65 76 65 72 61 6c 20 |ere are |several |
|000029c0| 5c 74 74 20 43 4f 4d 4d | 4f 4e 20 5c 72 6d 20 62 |\tt COMM|ON \rm b|
|000029d0| 6c 6f 63 6b 73 2c 20 65 | 61 63 68 20 6f 66 20 77 |locks, e|ach of w|
|000029e0| 68 69 63 68 20 63 6f 6e | 74 61 69 6e 73 0a 58 6d |hich con|tains.Xm|
|000029f0| 61 6e 79 20 61 72 72 61 | 79 73 2e 20 20 54 68 65 |any arra|ys. The|
|00002a00| 72 65 20 69 73 20 61 6e | 20 69 6e 69 74 69 61 6c |re is an| initial|
|00002a10| 69 7a 61 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |ization |routine |
|00002a20| 77 68 69 63 68 20 74 72 | 65 61 74 73 20 65 61 63 |which tr|eats eac|
|00002a30| 68 20 5c 74 74 0a 58 43 | 4f 4d 4d 4f 4e 20 5c 72 |h \tt.XC|OMMON \r|
|00002a40| 6d 20 62 6c 6f 63 6b 20 | 61 73 20 61 20 73 69 6e |m block |as a sin|
|00002a50| 67 6c 65 20 61 72 72 61 | 79 2c 20 61 6e 64 20 69 |gle arra|y, and i|
|00002a60| 6e 69 74 69 61 6c 69 7a | 65 73 20 69 74 20 69 6e |nitializ|es it in|
|00002a70| 20 61 20 73 69 6e 67 6c | 65 0a 58 6c 6f 6f 70 2e | a singl|e.Xloop.|
|00002a80| 0a 58 0a 58 49 74 20 69 | 73 20 70 6f 73 73 69 62 |.X.XIt i|s possib|
|00002a90| 6c 65 20 74 6f 20 64 75 | 70 6c 69 63 61 74 65 20 |le to du|plicate |
|00002aa0| 74 68 65 20 61 64 6a 61 | 63 65 6e 74 20 73 74 6f |the adja|cent sto|
|00002ab0| 72 61 67 65 20 65 66 66 | 65 63 74 20 6f 66 20 5c |rage eff|ect of \|
|00002ac0| 74 74 20 43 4f 4d 4d 4f | 4e 0a 58 5c 72 6d 20 62 |tt COMMO|N.X\rm b|
|00002ad0| 6c 6f 63 6b 73 20 69 6e | 20 43 2e 20 20 46 69 67 |locks in| C. Fig|
|00002ae0| 75 72 65 7e 32 20 73 68 | 6f 77 73 20 61 6e 20 65 |ure~2 sh|ows an e|
|00002af0| 78 61 6d 70 6c 65 20 6f | 66 20 74 68 69 73 20 75 |xample o|f this u|
|00002b00| 73 61 67 65 2e 0a 58 0a | 58 5c 62 65 67 69 6e 7b |sage..X.|X\begin{|
|00002b10| 66 69 67 75 72 65 7d 5b | 68 74 5d 0a 58 5c 73 6d |figure}[|ht].X\sm|
|00002b20| 61 6c 6c 0a 58 5c 63 61 | 70 74 69 6f 6e 7b 54 72 |all.X\ca|ption{Tr|
|00002b30| 61 6e 73 6c 61 74 69 6e | 67 20 5c 74 74 20 43 4f |anslatin|g \tt CO|
|00002b40| 4d 4d 4f 4e 20 5c 72 6d | 20 75 73 61 67 65 20 74 |MMON \rm| usage t|
|00002b50| 6f 20 43 7d 0a 58 5c 62 | 65 67 69 6e 7b 76 65 72 |o C}.X\b|egin{ver|
|00002b60| 62 61 74 69 6d 7d 0a 58 | 0a 58 73 74 72 75 63 74 |batim}.X|.Xstruct|
|00002b70| 20 63 62 6c 6f 63 6b 20 | 7b 0a 58 20 20 66 6c 6f | cblock |{.X flo|
|00002b80| 61 74 20 41 5f 5b 33 5d | 3b 0a 58 7d 20 43 42 4c |at A_[3]|;.X} CBL|
|00002b90| 4f 43 4b 3b 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |OCK;.X.X|#define |
|00002ba0| 41 31 20 43 42 4c 4f 43 | 4b 2e 41 5f 5b 30 5d 0a |A1 CBLOC|K.A_[0].|
|00002bb0| 58 23 64 65 66 69 6e 65 | 20 42 31 20 43 42 4c 4f |X#define| B1 CBLO|
|00002bc0| 43 4b 2e 41 5f 5b 31 5d | 0a 58 23 64 65 66 69 6e |CK.A_[1]|.X#defin|
|00002bd0| 65 20 43 31 20 43 42 4c | 4f 43 4b 2e 41 5f 5b 32 |e C1 CBL|OCK.A_[2|
|00002be0| 5d 0a 58 23 64 65 66 69 | 6e 65 20 41 20 20 43 42 |].X#defi|ne A CB|
|00002bf0| 4c 4f 43 4b 2e 41 5f 0a | 58 0a 58 76 6f 69 64 20 |LOCK.A_.|X.Xvoid |
|00002c00| 69 6e 69 74 28 29 0a 58 | 7b 0a 58 20 20 69 6e 74 |init().X|{.X int|
|00002c10| 20 69 3b 0a 58 20 20 66 | 6f 72 20 28 69 20 3d 20 | i;.X f|or (i = |
|00002c20| 30 3b 20 69 20 3c 20 33 | 3b 20 69 2b 2b 29 0a 58 |0; i < 3|; i++).X|
|00002c30| 20 20 20 20 41 5b 69 5d | 20 3d 20 69 3b 0a 58 7d | A[i]| = i;.X}|
|00002c40| 0a 58 0a 58 6d 61 69 6e | 28 29 0a 58 7b 0a 58 20 |.X.Xmain|().X{.X |
|00002c50| 20 69 6e 69 74 28 29 3b | 0a 58 20 20 66 70 72 69 | init();|.X fpri|
|00002c60| 6e 74 66 28 73 74 64 6f | 75 74 2c 22 41 31 20 3d |ntf(stdo|ut,"A1 =|
|00002c70| 20 25 66 2c 20 42 31 20 | 3d 20 25 66 2c 20 43 31 | %f, B1 |= %f, C1|
|00002c80| 20 3d 20 25 66 5c 6e 22 | 2c 20 41 31 2c 20 42 31 | = %f\n"|, A1, B1|
|00002c90| 2c 20 43 31 29 3b 0a 58 | 7d 0a 58 0a 58 5c 65 6e |, C1);.X|}.X.X\en|
|00002ca0| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 58 5c 65 6e |d{verbat|im}.X\en|
|00002cb0| 64 7b 66 69 67 75 72 65 | 7d 0a 58 0a 58 49 74 20 |d{figure|}.X.XIt |
|00002cc0| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 75 |is possi|ble to u|
|00002cd0| 73 65 20 74 68 69 73 20 | 74 65 63 68 6e 69 71 75 |se this |techniqu|
|00002ce0| 65 20 77 69 74 68 69 6e | 20 74 68 65 20 5c 74 74 |e within| the \tt|
|00002cf0| 20 73 74 72 75 63 74 20 | 5c 72 6d 20 74 6f 20 64 | struct |\rm to d|
|00002d00| 75 70 6c 69 63 61 74 65 | 0a 58 61 6e 79 20 70 6f |uplicate|.Xany po|
|00002d10| 73 73 69 62 6c 65 20 6e | 61 6d 69 6e 67 20 77 68 |ssible n|aming wh|
|00002d20| 69 63 68 20 63 6f 6d 65 | 73 20 75 70 20 77 69 74 |ich come|s up wit|
|00002d30| 68 69 6e 20 61 20 5c 74 | 74 20 43 4f 4d 4d 4f 4e |hin a \t|t COMMON|
|00002d40| 20 5c 72 6d 20 62 6c 6f | 63 6b 2e 20 20 49 6e 0a | \rm blo|ck. In.|
|00002d50| 58 70 61 72 74 69 63 75 | 6c 61 72 2c 20 6d 75 6c |Xparticu|lar, mul|
|00002d60| 74 69 70 6c 65 20 61 72 | 72 61 79 73 20 63 61 6e |tiple ar|rays can|
|00002d70| 20 62 65 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 | be impl|emented |
|00002d80| 62 79 20 75 73 69 6e 67 | 20 65 69 74 68 65 72 20 |by using| either |
|00002d90| 75 6e 69 6f 6e 73 0a 58 | 61 6e 64 20 70 72 65 70 |unions.X|and prep|
|00002da0| 72 6f 63 65 73 73 6f 72 | 20 64 65 66 69 6e 65 73 |rocessor| defines|
|00002db0| 2c 20 69 66 20 74 68 65 | 79 20 64 6f 20 6e 6f 74 |, if the|y do not|
|00002dc0| 20 6f 76 65 72 6c 61 70 | 2c 20 6f 72 20 6e 61 6d | overlap|, or nam|
|00002dd0| 65 73 20 61 6e 64 0a 58 | 70 72 65 70 72 6f 63 65 |es and.X|preproce|
|00002de0| 73 73 6f 72 20 6d 61 63 | 72 6f 20 66 75 6e 63 74 |ssor mac|ro funct|
|00002df0| 69 6f 6e 73 20 69 66 20 | 74 68 65 79 20 64 6f 20 |ions if |they do |
|00002e00| 6f 76 65 72 6c 61 70 2e | 0a 58 0a 58 42 65 63 61 |overlap.|.X.XBeca|
|00002e10| 75 73 65 20 74 68 65 20 | 6f 6e 6c 79 20 75 73 65 |use the |only use|
|00002e20| 73 20 6f 66 20 74 68 65 | 20 5c 74 74 20 43 4f 4d |s of the| \tt COM|
|00002e30| 4d 4f 4e 20 5c 72 6d 20 | 62 6c 6f 63 6b 73 20 77 |MON \rm |blocks w|
|00002e40| 69 74 68 69 6e 20 74 68 | 65 20 4c 69 76 65 72 6d |ithin th|e Liverm|
|00002e50| 6f 72 65 0a 58 4c 6f 6f | 70 73 20 69 73 20 74 6f |ore.XLoo|ps is to|
|00002e60| 20 70 72 6f 76 69 64 65 | 20 67 6c 6f 62 61 6c 20 | provide| global |
|00002e70| 64 61 74 61 20 61 6e 64 | 20 74 6f 20 73 69 6d 70 |data and| to simp|
|00002e80| 6c 69 66 79 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |lify ini|tializat|
|00002e90| 69 6f 6e 20 61 6e 64 0a | 58 63 68 65 63 6b 73 75 |ion and.|Xchecksu|
|00002ea0| 6d 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 2c 20 74 |m calcul|ation, t|
|00002eb0| 68 69 73 20 61 70 70 72 | 6f 61 63 68 20 77 61 73 |his appr|oach was|
|00002ec0| 20 6e 6f 74 20 74 61 6b | 65 6e 2c 20 62 75 74 20 | not tak|en, but |
|00002ed0| 72 61 74 68 65 72 20 65 | 61 63 68 0a 58 76 61 72 |rather e|ach.Xvar|
|00002ee0| 69 61 62 6c 65 20 77 61 | 73 20 64 65 63 6c 61 72 |iable wa|s declar|
|00002ef0| 65 64 20 61 73 20 61 20 | 43 20 67 6c 6f 62 61 6c |ed as a |C global|
|00002f00| 2c 20 61 6e 64 20 74 68 | 65 20 69 6e 69 74 69 61 |, and th|e initia|
|00002f10| 6c 69 7a 61 74 69 6f 6e | 20 72 6f 75 74 69 6e 65 |lization| routine|
|00002f20| 73 0a 58 77 65 72 65 20 | 6d 6f 64 69 66 69 65 64 |s.Xwere |modified|
|00002f30| 20 74 6f 20 65 78 70 6c | 69 63 69 74 6c 79 20 69 | to expl|icitly i|
|00002f40| 6e 69 74 69 61 6c 69 7a | 65 20 65 61 63 68 20 72 |nitializ|e each r|
|00002f50| 6f 75 74 69 6e 65 20 73 | 65 70 61 72 61 74 65 6c |outine s|eparatel|
|00002f60| 79 2e 20 20 54 68 69 73 | 0a 58 68 61 73 20 61 6e |y. This|.Xhas an|
|00002f70| 20 69 6d 70 61 63 74 20 | 6f 6e 20 62 6f 74 68 20 | impact |on both |
|00002f80| 74 68 65 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |the init|ializati|
|00002f90| 6f 6e 20 61 6e 64 20 63 | 68 65 63 6b 73 75 6d 20 |on and c|hecksum |
|00002fa0| 73 6f 66 74 77 61 72 65 | 2e 0a 58 0a 58 4f 6e 20 |software|..X.XOn |
|00002fb0| 6d 61 63 68 69 6e 65 73 | 20 66 6f 72 20 77 68 69 |machines| for whi|
|00002fc0| 63 68 20 5c 74 74 20 64 | 6f 75 62 6c 65 20 5c 72 |ch \tt d|ouble \r|
|00002fd0| 6d 20 70 72 6f 76 69 64 | 65 73 20 6d 6f 72 65 20 |m provid|es more |
|00002fe0| 70 72 65 63 69 73 69 6f | 6e 20 74 68 61 6e 20 5c |precisio|n than \|
|00002ff0| 74 74 0a 58 66 6c 6f 61 | 74 20 5c 72 6d 20 69 6e |tt.Xfloa|t \rm in|
|00003000| 20 43 2c 20 6e 75 6d 65 | 72 69 63 61 6c 20 63 61 | C, nume|rical ca|
|00003010| 6c 63 75 6c 61 74 69 6f | 6e 73 20 61 72 65 20 64 |lculatio|ns are d|
|00003020| 6f 6e 65 20 64 69 66 66 | 65 72 65 6e 74 6c 79 20 |one diff|erently |
|00003030| 69 6e 20 43 20 74 68 61 | 6e 0a 58 69 6e 20 46 6f |in C tha|n.Xin Fo|
|00003040| 72 74 72 61 6e 2e 20 20 | 57 68 65 6e 20 61 6c 6c |rtran. |When all|
|00003050| 20 6f 66 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | of the |variable|
|00003060| 73 20 69 6e 76 6f 6c 76 | 65 64 20 69 6e 20 61 20 |s involv|ed in a |
|00003070| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 20 61 72 65 0a |calculat|ion are.|
|00003080| 58 6f 66 20 74 68 65 20 | 73 61 6d 65 20 70 72 65 |Xof the |same pre|
|00003090| 63 69 73 69 6f 6e 2c 20 | 46 6f 72 74 72 61 6e 20 |cision, |Fortran |
|000030a0| 63 61 6c 63 75 6c 61 74 | 65 73 20 61 6c 6c 20 69 |calculat|es all i|
|000030b0| 6e 74 65 72 6d 65 64 69 | 61 74 65 20 72 65 73 75 |ntermedi|ate resu|
|000030c0| 6c 74 73 20 74 6f 0a 58 | 74 68 61 74 20 70 72 65 |lts to.X|that pre|
|000030d0| 63 69 73 69 6f 6e 2e 20 | 20 43 20 70 72 6f 6d 6f |cision. | C promo|
|000030e0| 74 65 73 20 61 6c 6c 20 | 76 61 72 69 61 62 6c 65 |tes all |variable|
|000030f0| 20 74 6f 20 74 68 65 20 | 70 72 65 63 69 73 69 6f | to the |precisio|
|00003100| 6e 20 6f 66 20 5c 74 74 | 0a 58 64 6f 75 62 6c 65 |n of \tt|.Xdouble|
|00003110| 2c 20 5c 72 6d 20 64 6f | 65 73 20 61 6c 6c 20 63 |, \rm do|es all c|
|00003120| 61 6c 63 75 6c 61 74 69 | 6f 6e 73 20 69 6e 20 64 |alculati|ons in d|
|00003130| 6f 75 62 6c 65 20 61 6e | 64 20 63 6f 6e 76 65 72 |ouble an|d conver|
|00003140| 74 73 20 74 6f 20 74 68 | 65 0a 58 70 72 65 63 69 |ts to th|e.Xpreci|
|00003150| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 72 65 73 75 |sion of |the resu|
|00003160| 6c 74 2e 20 20 54 68 69 | 73 20 79 69 65 6c 64 73 |lt. Thi|s yields|
|00003170| 20 64 69 66 66 65 72 65 | 6e 74 20 6e 75 6d 65 72 | differe|nt numer|
|00003180| 69 63 61 6c 20 72 65 73 | 75 6c 74 73 20 77 68 65 |ical res|ults whe|
|00003190| 6e 0a 58 74 68 65 72 65 | 20 61 72 65 20 73 75 62 |n.Xthere| are sub|
|000031a0| 65 78 70 72 65 73 73 69 | 6f 6e 73 2c 20 66 6f 72 |expressi|ons, for|
|000031b0| 20 69 6e 73 74 61 6e 63 | 65 20 69 6e 20 74 68 65 | instanc|e in the|
|000031c0| 20 63 61 73 65 0a 58 0a | 58 5c 62 65 67 69 6e 7b | case.X.|X\begin{|
|000031d0| 76 65 72 62 61 74 69 6d | 7d 0a 58 72 65 73 75 6c |verbatim|}.Xresul|
|000031e0| 74 20 3d 20 61 20 2a 20 | 62 20 2d 20 63 20 2a 20 |t = a * |b - c * |
|000031f0| 64 0a 58 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |d.X\end{|verbatim|
|00003200| 7d 0a 58 0a 58 46 6f 72 | 74 72 61 6e 20 77 6f 75 |}.X.XFor|tran wou|
|00003210| 6c 64 20 63 61 6c 63 75 | 6c 61 74 65 20 74 68 65 |ld calcu|late the|
|00003220| 20 74 77 6f 20 70 72 6f | 64 75 63 74 73 2c 20 63 | two pro|ducts, c|
|00003230| 6f 6e 76 65 72 74 20 74 | 6f 20 74 68 65 20 61 70 |onvert t|o the ap|
|00003240| 70 72 6f 70 72 69 61 74 | 65 0a 58 70 72 65 63 69 |propriat|e.Xpreci|
|00003250| 73 69 6f 6e 2c 20 70 65 | 72 66 6f 72 6d 20 74 68 |sion, pe|rform th|
|00003260| 65 20 61 64 64 69 74 69 | 6f 6e 20 61 6e 64 20 73 |e additi|on and s|
|00003270| 74 6f 72 65 20 74 68 65 | 20 72 65 73 75 6c 74 2e |tore the| result.|
|00003280| 20 20 43 20 77 6f 75 6c | 64 0a 58 63 61 6c 63 75 | C woul|d.Xcalcu|
|00003290| 6c 61 74 65 20 74 68 65 | 20 74 77 6f 20 70 72 6f |late the| two pro|
|000032a0| 64 75 63 74 73 20 69 6e | 20 5c 74 74 20 64 6f 75 |ducts in| \tt dou|
|000032b0| 62 6c 65 20 5c 72 6d 20 | 70 72 65 63 69 73 69 6f |ble \rm |precisio|
|000032c0| 6e 2c 20 70 65 72 66 6f | 72 6d 20 61 20 5c 74 74 |n, perfo|rm a \tt|
|000032d0| 0a 58 64 6f 75 62 6c 65 | 20 5c 72 6d 20 70 72 65 |.Xdouble| \rm pre|
|000032e0| 63 69 73 69 6f 6e 20 61 | 64 64 2c 20 61 6e 64 20 |cision a|dd, and |
|000032f0| 74 68 65 6e 20 63 6f 6e | 76 65 72 74 20 74 68 65 |then con|vert the|
|00003300| 20 72 65 73 75 6c 74 2e | 20 20 54 68 69 73 20 63 | result.| This c|
|00003310| 61 6e 20 79 69 65 6c 64 | 0a 58 71 75 69 74 65 20 |an yield|.Xquite |
|00003320| 64 69 66 66 65 72 65 6e | 74 20 6e 75 6d 62 65 72 |differen|t number|
|00003330| 73 2e 0a 58 0a 58 54 68 | 65 20 72 6f 75 74 69 6e |s..X.XTh|e routin|
|00003340| 65 20 77 68 69 63 68 20 | 67 65 6e 65 72 61 74 65 |e which |generate|
|00003350| 73 20 74 68 65 20 69 6e | 69 74 69 61 6c 20 64 61 |s the in|itial da|
|00003360| 74 61 20 77 61 73 20 63 | 61 72 65 66 75 6c 6c 79 |ta was c|arefully|
|00003370| 20 63 6f 64 65 64 20 74 | 6f 0a 58 6d 69 6d 69 63 | coded t|o.Xmimic|
|00003380| 20 46 6f 72 74 72 61 6e | 20 63 6f 6e 76 65 72 73 | Fortran| convers|
|00003390| 69 6f 6e 2c 20 73 6f 20 | 74 68 61 74 20 74 68 65 |ion, so |that the|
|000033a0| 20 69 6e 69 74 69 61 6c | 20 64 61 74 61 20 77 6f | initial| data wo|
|000033b0| 75 6c 64 20 62 65 20 74 | 68 65 20 73 61 6d 65 0a |uld be t|he same.|
|000033c0| 58 69 6e 20 74 68 65 20 | 43 20 63 61 73 65 20 61 |Xin the |C case a|
|000033d0| 73 20 69 6e 20 74 68 65 | 20 46 6f 72 74 72 61 6e |s in the| Fortran|
|000033e0| 20 63 61 73 65 2c 20 61 | 6e 64 20 63 61 72 65 20 | case, a|nd care |
|000033f0| 77 61 73 20 74 61 6b 65 | 6e 20 74 6f 20 73 65 65 |was take|n to see|
|00003400| 20 74 68 61 74 0a 58 73 | 75 62 72 6f 75 74 69 6e | that.Xs|ubroutin|
|00003410| 65 20 63 61 6c 6c 73 20 | 77 65 72 65 20 70 65 72 |e calls |were per|
|00003420| 66 6f 72 6d 65 64 20 77 | 69 74 68 20 74 68 65 20 |formed w|ith the |
|00003430| 63 6f 72 72 65 63 74 20 | 61 72 67 75 6d 65 6e 74 |correct |argument|
|00003440| 20 74 79 70 65 73 2c 20 | 62 75 74 0a 58 74 68 65 | types, |but.Xthe|
|00003450| 20 74 65 73 74 20 72 6f | 75 74 69 6e 65 73 20 63 | test ro|utines c|
|00003460| 61 6c 63 75 6c 61 74 65 | 20 74 68 65 20 72 65 73 |alculate| the res|
|00003470| 75 6c 74 73 20 75 73 69 | 6e 67 20 64 65 66 61 75 |ults usi|ng defau|
|00003480| 6c 74 20 43 20 70 72 6f | 6d 6f 74 69 6f 6e 0a 58 |lt C pro|motion.X|
|00003490| 72 75 6c 65 73 2e 0a 58 | 0a 58 5c 73 65 63 74 69 |rules..X|.X\secti|
|000034a0| 6f 6e 7b 56 65 72 69 66 | 79 69 6e 67 20 74 68 65 |on{Verif|ying the|
|000034b0| 20 54 72 61 6e 73 6c 69 | 74 65 72 61 74 69 6f 6e | Transli|teration|
|000034c0| 7d 0a 58 0a 58 54 68 65 | 20 43 6f 6e 76 65 78 20 |}.X.XThe| Convex |
|000034d0| 63 6f 6d 70 69 6c 65 72 | 73 20 70 72 6f 76 69 64 |compiler|s provid|
|000034e0| 65 20 73 74 61 74 65 6d | 65 6e 74 20 63 6f 75 6e |e statem|ent coun|
|000034f0| 74 69 6e 67 20 61 73 20 | 61 20 70 72 6f 66 69 6c |ting as |a profil|
|00003500| 65 72 20 6f 70 74 69 6f | 6e 2e 0a 58 54 68 65 20 |er optio|n..XThe |
|00003510| 46 6f 72 74 72 61 6e 20 | 61 6e 64 20 43 20 76 65 |Fortran |and C ve|
|00003520| 72 73 69 6f 6e 73 20 6f | 66 20 74 68 65 20 6c 6f |rsions o|f the lo|
|00003530| 6f 70 73 20 77 65 72 65 | 20 72 75 6e 20 77 69 74 |ops were| run wit|
|00003540| 68 20 6e 6f 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |h no opt|imizatio|
|00003550| 6e 0a 58 61 6e 64 20 77 | 69 74 68 20 73 74 61 74 |n.Xand w|ith stat|
|00003560| 65 6d 65 6e 74 20 70 72 | 6f 66 69 6c 69 6e 67 20 |ement pr|ofiling |
|00003570| 65 6e 61 62 6c 65 64 2e | 20 20 54 68 65 20 73 74 |enabled.| The st|
|00003580| 61 74 65 6d 65 6e 74 20 | 63 6f 75 6e 74 73 20 77 |atement |counts w|
|00003590| 65 72 65 0a 58 63 6f 6d | 70 61 72 65 64 20 6f 6e |ere.Xcom|pared on|
|000035a0| 20 61 20 73 74 61 74 65 | 6d 65 6e 74 20 62 79 20 | a state|ment by |
|000035b0| 73 74 61 74 65 6d 65 6e | 74 20 62 61 73 69 73 20 |statemen|t basis |
|000035c0| 66 6f 72 20 74 68 65 20 | 74 77 6f 20 70 72 6f 67 |for the |two prog|
|000035d0| 72 61 6d 73 2e 20 20 41 | 6c 6c 0a 58 6c 6f 6f 70 |rams. A|ll.Xloop|
|000035e0| 73 20 77 65 72 65 20 66 | 6f 75 6e 64 20 74 6f 20 |s were f|ound to |
|000035f0| 61 67 72 65 65 20 65 78 | 61 63 74 6c 79 2e 0a 58 |agree ex|actly..X|
|00003600| 0a 58 4f 6e 63 65 20 74 | 68 65 20 73 74 61 74 65 |.XOnce t|he state|
|00003610| 6d 65 6e 74 20 63 6f 75 | 6e 74 73 20 77 65 72 65 |ment cou|nts were|
|00003620| 20 63 6f 6d 70 6c 65 74 | 65 64 2c 20 74 68 65 20 | complet|ed, the |
|00003630| 74 77 6f 20 70 72 6f 67 | 72 61 6d 73 20 77 65 72 |two prog|rams wer|
|00003640| 65 20 72 75 6e 20 6f 6e | 0a 58 74 68 65 20 43 72 |e run on|.Xthe Cr|
|00003650| 61 79 20 32 2c 20 77 68 | 69 63 68 20 68 61 73 20 |ay 2, wh|ich has |
|00003660| 74 68 65 20 73 61 6d 65 | 20 70 72 65 63 69 73 69 |the same| precisi|
|00003670| 6f 6e 20 66 6f 72 20 5c | 74 74 20 66 6c 6f 61 74 |on for \|tt float|
|00003680| 20 5c 72 6d 20 61 6e 64 | 20 5c 74 74 0a 58 64 6f | \rm and| \tt.Xdo|
|00003690| 75 62 6c 65 20 5c 72 6d | 20 69 6e 20 43 2e 20 20 |uble \rm| in C. |
|000036a0| 54 68 65 20 46 6f 72 74 | 72 61 6e 20 76 65 72 73 |The Fort|ran vers|
|000036b0| 69 6f 6e 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |ion was |compiled|
|000036c0| 20 77 69 74 68 20 43 46 | 54 37 37 20 72 65 6c 65 | with CF|T77 rele|
|000036d0| 61 73 65 0a 58 33 2e 30 | 20 77 69 74 68 20 61 6c |ase.X3.0| with al|
|000036e0| 6c 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 64 |l optimi|zation d|
|000036f0| 69 73 61 62 6c 65 64 2e | 20 20 54 68 65 20 43 20 |isabled.| The C |
|00003700| 76 65 72 73 69 6f 6e 20 | 77 61 73 20 63 6f 6d 70 |version |was comp|
|00003710| 69 6c 65 64 20 77 69 74 | 68 0a 58 74 68 65 20 55 |iled wit|h.Xthe U|
|00003720| 6e 69 43 6f 73 20 34 2e | 30 20 43 20 63 6f 6d 70 |niCos 4.|0 C comp|
|00003730| 69 6c 65 72 2e 0a 58 0a | 58 4c 6f 6f 70 73 20 31 |iler..X.|XLoops 1|
|00003740| 20 74 68 72 6f 75 67 68 | 20 35 2c 20 37 2c 20 31 | through| 5, 7, 1|
|00003750| 31 2c 20 31 32 2c 20 31 | 33 2c 20 31 34 2c 20 31 |1, 12, 1|3, 14, 1|
|00003760| 36 2c 20 31 37 2c 20 32 | 30 2c 20 61 6e 64 20 32 |6, 17, 2|0, and 2|
|00003770| 34 20 70 72 6f 64 75 63 | 65 0a 58 69 64 65 6e 74 |4 produc|e.Xident|
|00003780| 69 63 61 6c 20 63 68 65 | 63 6b 73 75 6d 73 20 74 |ical che|cksums t|
|00003790| 6f 20 31 32 20 64 65 63 | 69 6d 61 6c 20 70 6c 61 |o 12 dec|imal pla|
|000037a0| 63 65 73 2c 20 77 68 69 | 63 68 20 69 73 20 6e 65 |ces, whi|ch is ne|
|000037b0| 61 72 6c 79 20 74 68 65 | 20 6c 69 6d 69 74 20 6f |arly the| limit o|
|000037c0| 66 0a 58 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |f.Xfloat|ing poin|
|000037d0| 74 20 70 72 65 63 69 73 | 69 6f 6e 20 6f 6e 20 74 |t precis|ion on t|
|000037e0| 68 65 20 43 72 61 79 20 | 32 2e 20 20 4c 6f 6f 70 |he Cray |2. Loop|
|000037f0| 73 20 36 2c 20 38 2c 20 | 39 2c 20 31 30 2c 20 31 |s 6, 8, |9, 10, 1|
|00003800| 35 2c 20 31 38 2c 0a 58 | 32 31 20 61 6e 64 20 32 |5, 18,.X|21 and 2|
|00003810| 33 20 61 6c 6c 20 6d 61 | 74 63 68 20 74 6f 20 61 |3 all ma|tch to a|
|00003820| 74 20 6c 65 61 73 74 20 | 66 69 76 65 20 64 65 63 |t least |five dec|
|00003830| 69 6d 61 6c 20 70 6c 61 | 63 65 73 2e 20 20 43 61 |imal pla|ces. Ca|
|00003840| 72 65 66 75 6c 0a 58 69 | 6e 73 70 65 63 74 69 6f |reful.Xi|nspectio|
|00003850| 6e 20 6f 66 20 74 68 65 | 20 6c 6f 6f 70 73 20 77 |n of the| loops w|
|00003860| 61 73 20 6d 61 64 65 20 | 62 79 20 72 75 6e 6e 69 |as made |by runni|
|00003870| 6e 67 20 74 68 65 20 46 | 6f 72 74 72 61 6e 20 61 |ng the F|ortran a|
|00003880| 6e 64 20 43 20 76 65 72 | 73 69 6f 6e 73 0a 58 73 |nd C ver|sions.Xs|
|00003890| 69 6d 75 6c 74 61 6e 65 | 6f 75 73 6c 79 20 75 6e |imultane|ously un|
|000038a0| 64 65 72 20 61 20 73 6f | 75 72 63 65 20 6c 65 76 |der a so|urce lev|
|000038b0| 65 6c 20 64 65 62 75 67 | 67 65 72 20 6f 6e 20 61 |el debug|ger on a|
|000038c0| 20 53 69 6c 69 63 6f 6e | 20 47 72 61 70 68 69 63 | Silicon| Graphic|
|000038d0| 73 0a 58 49 72 69 73 20 | 34 44 20 77 6f 72 6b 73 |s.XIris |4D works|
|000038e0| 74 61 74 69 6f 6e 2e 20 | 20 53 65 76 65 72 61 6c |tation. | Several|
|000038f0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 62 75 67 73 | additio|nal bugs|
|00003900| 20 77 65 72 65 20 63 6f | 72 72 65 63 74 65 64 2c | were co|rrected,|
|00003910| 20 62 75 74 20 6e 6f 0a | 58 64 69 66 66 65 72 65 | but no.|Xdiffere|
|00003920| 6e 63 65 20 69 6e 20 74 | 68 65 20 6e 75 6d 65 72 |nce in t|he numer|
|00003930| 69 63 61 6c 20 72 65 73 | 75 6c 74 73 20 77 61 73 |ical res|ults was|
|00003940| 20 66 6f 75 6e 64 2e 20 | 20 49 74 20 69 73 20 73 | found. | It is s|
|00003950| 75 73 70 65 63 74 65 64 | 20 74 68 61 74 0a 58 74 |uspected| that.Xt|
|00003960| 68 65 20 72 65 6d 61 69 | 6e 69 6e 67 20 64 69 66 |he remai|ning dif|
|00003970| 66 65 72 65 6e 63 65 73 | 20 61 72 65 20 64 75 65 |ferences| are due|
|00003980| 20 74 6f 20 62 75 67 73 | 20 69 6e 20 74 68 65 20 | to bugs| in the |
|00003990| 77 61 79 20 69 6e 20 77 | 68 69 63 68 20 74 68 65 |way in w|hich the|
|000039a0| 0a 58 63 68 65 63 6b 73 | 75 6d 73 20 61 72 65 20 |.Xchecks|ums are |
|000039b0| 63 61 6c 63 75 6c 61 74 | 65 64 20 75 6e 64 65 72 |calculat|ed under|
|000039c0| 20 43 2e 0a 58 0a 58 5c | 73 65 63 74 69 6f 6e 7b | C..X.X\|section{|
|000039d0| 4f 76 65 72 76 69 65 77 | 20 6f 66 20 52 65 73 75 |Overview| of Resu|
|000039e0| 6c 74 73 7d 0a 58 0a 58 | 54 68 65 20 76 61 72 69 |lts}.X.X|The vari|
|000039f0| 6f 75 73 20 74 61 62 6c | 65 73 20 73 68 6f 77 20 |ous tabl|es show |
|00003a00| 74 68 65 20 72 65 70 6f | 72 74 65 64 20 6d 65 67 |the repo|rted meg|
|00003a10| 61 66 6c 6f 70 20 72 61 | 74 65 73 20 66 6f 72 20 |aflop ra|tes for |
|00003a20| 74 68 65 20 43 20 61 6e | 64 20 46 6f 72 74 72 61 |the C an|d Fortra|
|00003a30| 6e 0a 58 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |n.Xversi|on of th|
|00003a40| 65 20 4c 69 76 65 72 6d | 6f 72 65 20 4c 6f 6f 70 |e Liverm|ore Loop|
|00003a50| 73 20 6f 6e 20 73 65 76 | 65 72 61 6c 20 6d 61 63 |s on sev|eral mac|
|00003a60| 68 69 6e 65 73 20 77 68 | 69 63 68 20 77 65 72 65 |hines wh|ich were|
|00003a70| 0a 58 61 76 61 69 6c 61 | 62 6c 65 20 74 6f 20 74 |.Xavaila|ble to t|
|00003a80| 68 65 20 61 75 74 68 6f | 72 2e 20 20 4f 66 20 74 |he autho|r. Of t|
|00003a90| 68 65 20 6d 61 63 68 69 | 6e 65 73 20 77 68 69 63 |he machi|nes whic|
|00003aa0| 68 20 77 65 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |h were a|vailable|
|00003ab0| 2c 20 74 68 65 0a 58 49 | 72 69 73 20 61 6e 64 20 |, the.XI|ris and |
|00003ac0| 74 68 65 20 53 75 6e 20 | 77 65 72 65 20 63 68 6f |the Sun |were cho|
|00003ad0| 73 65 6e 20 61 73 20 72 | 65 70 72 65 73 65 6e 74 |sen as r|epresent|
|00003ae0| 61 74 69 76 65 20 6f 66 | 20 74 68 65 20 63 75 72 |ative of| the cur|
|00003af0| 72 65 6e 74 0a 58 67 65 | 6e 65 72 61 74 69 6f 6e |rent.Xge|neration|
|00003b00| 20 6f 66 20 65 6e 67 69 | 6e 65 65 72 69 6e 67 20 | of engi|neering |
|00003b10| 77 6f 72 6b 73 74 61 74 | 69 6f 6e 2c 20 74 68 65 |workstat|ion, the|
|00003b20| 20 41 6d 64 61 68 6c 20 | 61 73 20 72 65 70 72 65 | Amdahl |as repre|
|00003b30| 73 65 6e 74 61 74 69 76 | 65 20 6f 66 0a 58 63 75 |sentativ|e of.Xcu|
|00003b40| 72 72 65 6e 74 20 6d 61 | 69 6e 66 72 61 6d 65 73 |rrent ma|inframes|
|00003b50| 2c 20 74 68 65 20 43 6f | 6e 76 65 78 20 61 6e 64 |, the Co|nvex and|
|00003b60| 20 41 6c 6c 69 61 6e 74 | 20 61 73 20 72 65 70 72 | Alliant| as repr|
|00003b70| 65 73 65 6e 74 61 74 69 | 76 65 20 6f 66 20 74 77 |esentati|ve of tw|
|00003b80| 6f 0a 58 64 69 66 66 65 | 72 65 6e 74 20 61 70 70 |o.Xdiffe|rent app|
|00003b90| 72 6f 61 63 68 65 73 20 | 74 6f 20 6d 69 6e 69 73 |roaches |to minis|
|00003ba0| 75 70 65 72 63 6f 6d 70 | 75 74 65 72 73 2c 20 61 |upercomp|uters, a|
|00003bb0| 6e 64 20 74 68 65 20 43 | 72 61 79 20 32 20 61 73 |nd the C|ray 2 as|
|00003bc0| 20 61 0a 58 72 65 70 72 | 65 73 65 6e 74 61 74 69 | a.Xrepr|esentati|
|00003bd0| 76 65 20 73 75 70 65 72 | 63 6f 6d 70 75 74 65 72 |ve super|computer|
|00003be0| 2e 20 20 41 6c 6c 20 6f | 66 20 74 68 65 20 6d 61 |. All o|f the ma|
|00003bf0| 63 68 69 6e 65 73 20 61 | 72 65 20 72 75 6e 6e 69 |chines a|re runni|
|00003c00| 6e 67 20 72 65 63 65 6e | 74 0a 58 72 65 6c 65 61 |ng recen|t.Xrelea|
|00003c10| 73 65 73 20 6f 66 20 74 | 68 65 20 76 65 6e 64 6f |ses of t|he vendo|
|00003c20| 72 27 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |r's vers|ion of t|
|00003c30| 68 65 20 55 6e 69 78 20 | 6f 70 65 72 61 74 69 6e |he Unix |operatin|
|00003c40| 67 20 73 79 73 74 65 6d | 2e 0a 58 0a 58 46 6f 72 |g system|..X.XFor|
|00003c50| 20 61 6c 6c 20 6d 61 63 | 68 69 6e 65 73 2c 20 74 | all mac|hines, t|
|00003c60| 68 65 20 6f 76 65 72 61 | 6c 6c 20 70 65 72 66 6f |he overa|ll perfo|
|00003c70| 72 6d 61 6e 63 65 20 6f | 66 20 74 68 65 20 43 20 |rmance o|f the C |
|00003c80| 63 6f 6d 70 69 6c 65 72 | 20 77 61 73 20 62 65 74 |compiler| was bet|
|00003c90| 74 65 72 0a 58 74 68 61 | 6e 20 74 68 65 20 6f 76 |ter.Xtha|n the ov|
|00003ca0| 65 72 61 6c 6c 20 70 65 | 72 66 6f 72 6d 61 6e 63 |erall pe|rformanc|
|00003cb0| 65 20 6f 66 20 74 68 65 | 20 46 6f 72 74 72 61 6e |e of the| Fortran|
|00003cc0| 20 63 6f 6d 70 69 6c 65 | 72 2e 20 20 46 6f 72 20 | compile|r. For |
|00003cd0| 74 68 65 20 6d 61 69 6e | 6c 79 0a 58 55 6e 69 78 |the main|ly.XUnix|
|00003ce0| 20 73 79 73 74 65 6d 73 | 2c 20 74 68 69 73 20 77 | systems|, this w|
|00003cf0| 61 73 20 6e 6f 74 20 73 | 75 72 70 72 69 73 69 6e |as not s|urprisin|
|00003d00| 67 2c 20 62 75 74 20 69 | 74 20 77 61 73 20 73 75 |g, but i|t was su|
|00003d10| 72 70 72 69 73 69 6e 67 | 20 6f 6e 20 74 68 65 0a |rprising| on the.|
|00003d20| 58 43 72 61 79 20 32 2e | 20 20 41 20 64 65 74 61 |XCray 2.| A deta|
|00003d30| 69 6c 65 64 20 63 6f 6d | 70 61 72 69 73 6f 6e 20 |iled com|parison |
|00003d40| 6f 66 20 74 68 65 20 6f | 70 74 69 6d 69 7a 61 74 |of the o|ptimizat|
|00003d50| 69 6f 6e 73 20 64 6f 6e | 65 20 62 79 20 74 68 65 |ions don|e by the|
|00003d60| 20 74 77 6f 0a 58 43 72 | 61 79 20 63 6f 6d 70 69 | two.XCr|ay compi|
|00003d70| 6c 65 72 73 20 6f 6e 20 | 6c 6f 6f 70 73 20 77 68 |lers on |loops wh|
|00003d80| 69 63 68 20 77 65 72 65 | 20 73 69 67 6e 69 66 69 |ich were| signifi|
|00003d90| 63 61 6e 74 6c 79 20 64 | 69 66 66 65 72 65 6e 74 |cantly d|ifferent|
|00003da0| 20 69 73 0a 58 70 72 65 | 73 65 6e 74 65 64 20 62 | is.Xpre|sented b|
|00003db0| 65 6c 6f 77 2e 0a 58 0a | 58 5c 62 65 67 69 6e 7b |elow..X.|X\begin{|
|00003dc0| 74 61 62 6c 65 7d 5b 68 | 74 62 70 5d 0a 58 5c 63 |table}[h|tbp].X\c|
|00003dd0| 61 70 74 69 6f 6e 7b 52 | 65 73 75 6c 74 73 20 69 |aption{R|esults i|
|00003de0| 6e 20 4d 65 67 61 66 6c | 6f 70 73 7d 0a 58 5c 73 |n Megafl|ops}.X\s|
|00003df0| 6d 61 6c 6c 0a 58 5c 62 | 65 67 69 6e 7b 74 61 62 |mall.X\b|egin{tab|
|00003e00| 75 6c 61 72 7d 7b 7c 72 | 7c 72 72 7c 72 72 7c 72 |ular}{|r||rr|rr|r|
|00003e10| 72 72 7c 7d 20 0a 58 5c | 68 6c 69 6e 65 0a 58 7b |rr|} .X\|hline.X{|
|00003e20| 5c 62 66 20 4d 61 6e 75 | 66 61 63 74 75 72 65 7d |\bf Manu|facture}|
|00003e30| 20 26 20 5c 6d 75 6c 74 | 69 63 6f 6c 75 6d 6e 7b | & \mult|icolumn{|
|00003e40| 32 7d 7b 7c 63 7c 7d 7b | 41 6c 6c 69 61 6e 74 7d |2}{|c|}{|Alliant}|
|00003e50| 20 20 26 0a 58 5c 6d 75 | 6c 74 69 63 6f 6c 75 6d | &.X\mu|lticolum|
|00003e60| 6e 7b 32 7d 7b 7c 63 7c | 7d 7b 41 6d 64 61 68 6c |n{2}{|c||}{Amdahl|
|00003e70| 7d 20 26 20 5c 6d 75 6c | 74 69 63 6f 6c 75 6d 6e |} & \mul|ticolumn|
|00003e80| 7b 33 7d 7b 7c 63 7c 7d | 7b 43 72 61 79 7d 20 5c |{3}{|c|}|{Cray} \|
|00003e90| 5c 0a 58 7b 5c 62 66 20 | 4d 6f 64 65 6c 7d 20 26 |\.X{\bf |Model} &|
|00003ea0| 20 5c 6d 75 6c 74 69 63 | 6f 6c 75 6d 6e 7b 32 7d | \multic|olumn{2}|
|00003eb0| 7b 7c 63 7c 7d 7b 46 58 | 2f 38 7d 20 26 20 5c 6d |{|c|}{FX|/8} & \m|
|00003ec0| 75 6c 74 69 63 6f 6c 75 | 6d 6e 7b 32 7d 7b 7c 63 |ulticolu|mn{2}{|c|
|00003ed0| 7c 7d 7b 35 38 38 30 7d | 20 26 0a 58 5c 6d 75 6c ||}{5880}| &.X\mul|
|00003ee0| 74 69 63 6f 6c 75 6d 6e | 7b 33 7d 7b 7c 63 7c 7d |ticolumn|{3}{|c|}|
|00003ef0| 7b 32 7d 20 5c 5c 0a 58 | 7b 5c 62 66 20 43 6f 6d |{2} \\.X|{\bf Com|
|00003f00| 70 69 6c 65 72 7d 20 26 | 20 63 63 20 26 20 66 6f |piler} &| cc & fo|
|00003f10| 72 74 72 61 6e 20 26 20 | 63 63 20 26 20 66 37 37 |rtran & |cc & f77|
|00003f20| 20 26 20 63 63 20 28 76 | 65 63 74 6f 72 29 20 26 | & cc (v|ector) &|
|00003f30| 20 63 66 74 37 37 20 28 | 76 65 63 74 6f 72 29 20 | cft77 (|vector) |
|00003f40| 26 0a 58 63 66 74 37 37 | 20 28 73 63 61 6c 61 72 |&.Xcft77| (scalar|
|00003f50| 29 20 5c 5c 20 0a 58 5c | 68 6c 69 6e 65 0a 58 31 |) \\ .X\|hline.X1|
|00003f60| 20 26 20 31 30 2e 37 32 | 20 26 20 31 35 2e 30 32 | & 10.72| & 15.02|
|00003f70| 20 26 20 31 35 2e 30 32 | 20 26 20 31 2e 38 38 20 | & 15.02| & 1.88 |
|00003f80| 26 20 37 36 34 2e 37 37 | 20 26 20 39 36 2e 38 39 |& 764.77| & 96.89|
|00003f90| 20 26 20 31 33 2e 35 33 | 20 5c 5c 0a 58 32 20 26 | & 13.53| \\.X2 &|
|00003fa0| 20 37 2e 37 36 20 26 20 | 30 2e 37 38 20 26 20 31 | 7.76 & |0.78 & 1|
|00003fb0| 31 2e 36 34 20 26 20 31 | 2e 31 36 20 26 20 33 30 |1.64 & 1|.16 & 30|
|00003fc0| 2e 32 38 20 26 20 31 38 | 2e 34 35 20 26 20 36 2e |.28 & 18|.45 & 6.|
|00003fd0| 34 30 20 5c 5c 0a 58 33 | 20 26 20 37 2e 35 31 20 |40 \\.X3| & 7.51 |
|00003fe0| 26 20 31 2e 30 30 20 26 | 20 31 35 2e 30 32 20 26 |& 1.00 &| 15.02 &|
|00003ff0| 20 31 2e 37 32 20 26 20 | 32 31 2e 33 39 20 26 20 | 1.72 & |21.39 & |
|00004000| 36 39 2e 35 37 20 26 20 | 31 31 2e 32 39 20 5c 5c |69.57 & |11.29 \\|
|00004010| 0a 58 34 20 26 20 36 2e | 35 35 20 26 20 30 2e 37 |.X4 & 6.|55 & 0.7|
|00004020| 32 20 26 20 39 2e 30 30 | 20 26 20 31 2e 30 33 20 |2 & 9.00| & 1.03 |
|00004030| 26 20 31 38 2e 33 32 20 | 26 20 33 32 2e 31 30 20 |& 18.32 |& 32.10 |
|00004040| 26 20 34 2e 31 36 20 5c | 5c 0a 58 35 20 26 20 37 |& 4.16 \|\.X5 & 7|
|00004050| 2e 30 36 20 26 20 30 2e | 37 31 20 26 20 31 32 2e |.06 & 0.|71 & 12.|
|00004060| 30 30 20 26 20 31 2e 30 | 39 20 26 20 32 30 2e 33 |00 & 1.0|9 & 20.3|
|00004070| 36 20 26 20 39 2e 38 35 | 20 26 20 31 30 2e 36 37 |6 & 9.85| & 10.67|
|00004080| 20 5c 5c 0a 58 36 20 26 | 20 35 2e 39 35 20 26 20 | \\.X6 &| 5.95 & |
|00004090| 30 2e 34 39 20 26 20 31 | 30 2e 38 32 20 26 20 31 |0.49 & 1|0.82 & 1|
|000040a0| 2e 30 31 20 26 20 32 31 | 2e 32 39 20 26 20 39 2e |.01 & 21|.29 & 9.|
|000040b0| 30 38 20 26 20 33 2e 39 | 30 20 5c 5c 0a 58 37 20 |08 & 3.9|0 \\.X7 |
|000040c0| 26 20 31 35 2e 39 32 20 | 26 20 31 39 2e 31 30 20 |& 15.92 |& 19.10 |
|000040d0| 26 20 31 38 2e 37 33 20 | 26 20 32 2e 35 31 20 26 |& 18.73 |& 2.51 &|
|000040e0| 20 39 32 39 2e 32 38 20 | 26 20 31 34 37 2e 33 31 | 929.28 |& 147.31|
|000040f0| 20 26 20 31 36 2e 33 35 | 20 5c 5c 0a 58 38 20 26 | & 16.35| \\.X8 &|
|00004100| 20 38 2e 30 37 20 26 20 | 31 34 2e 32 36 20 26 20 | 8.07 & |14.26 & |
|00004110| 31 31 2e 35 36 20 26 20 | 31 2e 30 37 20 26 20 34 |11.56 & |1.07 & 4|
|00004120| 31 2e 36 37 20 26 20 31 | 31 33 2e 33 39 20 26 20 |1.67 & 1|13.39 & |
|00004130| 31 37 2e 35 35 20 5c 5c | 0a 58 39 20 26 20 31 34 |17.55 \\|.X9 & 14|
|00004140| 2e 37 32 20 26 20 31 30 | 2e 33 30 20 26 20 32 35 |.72 & 10|.30 & 25|
|00004150| 2e 37 35 20 26 20 31 2e | 37 32 20 26 20 37 34 38 |.75 & 1.|72 & 748|
|00004160| 2e 39 31 20 26 20 31 31 | 33 2e 30 37 20 26 20 31 |.91 & 11|3.07 & 1|
|00004170| 33 2e 38 38 20 5c 5c 0a | 58 31 30 20 26 20 34 2e |3.88 \\.|X10 & 4.|
|00004180| 35 34 20 26 20 35 2e 34 | 35 20 26 20 39 2e 30 39 |54 & 5.4|5 & 9.09|
|00004190| 20 26 20 30 2e 35 35 20 | 26 20 32 31 2e 34 30 20 | & 0.55 |& 21.40 |
|000041a0| 26 20 33 35 2e 33 32 20 | 26 20 36 2e 36 38 20 5c |& 35.32 |& 6.68 \|
|000041b0| 5c 0a 58 31 31 20 26 20 | 34 2e 32 39 20 26 20 30 |\.X11 & |4.29 & 0|
|000041c0| 2e 34 33 20 26 20 37 2e | 35 30 20 26 20 30 2e 37 |.43 & 7.|50 & 0.7|
|000041d0| 35 20 26 20 31 31 2e 30 | 30 20 26 20 39 2e 30 32 |5 & 11.0|0 & 9.02|
|000041e0| 20 26 20 37 2e 35 37 20 | 5c 5c 0a 58 31 32 20 26 | & 7.57 |\\.X12 &|
|000041f0| 20 34 2e 30 30 20 26 20 | 35 2e 39 39 20 26 20 36 | 4.00 & |5.99 & 6|
|00004200| 2e 36 36 20 26 20 30 2e | 36 30 20 26 20 32 34 36 |.66 & 0.|60 & 246|
|00004210| 2e 35 33 20 26 20 33 30 | 2e 36 31 20 26 20 35 2e |.53 & 30|.61 & 5.|
|00004220| 32 34 20 5c 5c 0a 58 31 | 33 20 26 20 31 2e 36 38 |24 \\.X1|3 & 1.68|
|00004230| 20 26 20 30 2e 32 37 20 | 26 20 34 2e 34 38 20 26 | & 0.27 |& 4.48 &|
|00004240| 20 30 2e 32 34 20 26 20 | 36 2e 34 34 20 26 20 31 | 0.24 & |6.44 & 1|
|00004250| 2e 37 35 20 26 20 31 2e | 36 36 20 5c 5c 0a 58 31 |.75 & 1.|66 \\.X1|
|00004260| 34 20 26 20 33 2e 30 36 | 20 26 20 31 2e 31 36 20 |4 & 3.06| & 1.16 |
|00004270| 26 20 35 2e 34 36 20 26 | 20 30 2e 35 32 20 26 20 |& 5.46 &| 0.52 & |
|00004280| 31 34 2e 36 31 20 26 20 | 37 2e 32 32 20 26 20 33 |14.61 & |7.22 & 3|
|00004290| 2e 38 38 20 5c 5c 0a 58 | 31 35 20 26 20 35 2e 32 |.88 \\.X|15 & 5.2|
|000042a0| 39 20 26 20 32 2e 35 34 | 20 26 20 35 2e 38 36 20 |9 & 2.54| & 5.86 |
|000042b0| 26 20 30 2e 36 33 20 26 | 20 32 33 2e 30 35 20 26 |& 0.63 &| 23.05 &|
|000042c0| 20 36 2e 39 34 20 26 20 | 36 2e 36 36 20 5c 5c 0a | 6.94 & |6.66 \\.|
|000042d0| 58 31 36 20 26 20 34 2e | 35 34 20 26 20 30 2e 34 |X16 & 4.|54 & 0.4|
|000042e0| 35 20 26 20 31 30 2e 36 | 30 20 26 20 31 2e 35 39 |5 & 10.6|0 & 1.59|
|000042f0| 20 26 20 31 35 2e 32 38 | 20 26 20 34 2e 30 30 20 | & 15.28| & 4.00 |
|00004300| 26 20 33 2e 38 36 20 5c | 5c 0a 58 31 37 20 26 20 |& 3.86 \|\.X17 & |
|00004310| 37 2e 37 39 20 26 20 31 | 2e 38 32 20 26 20 31 33 |7.79 & 1|.82 & 13|
|00004320| 2e 36 33 20 26 20 32 2e | 37 33 20 26 20 33 36 2e |.63 & 2.|73 & 36.|
|00004330| 37 34 20 26 20 38 2e 30 | 38 20 26 20 37 2e 38 31 |74 & 8.0|8 & 7.81|
|00004340| 20 5c 5c 0a 58 31 38 20 | 26 20 31 30 2e 36 32 20 | \\.X18 |& 10.62 |
|00004350| 26 20 37 2e 32 36 20 26 | 20 39 2e 30 37 20 26 20 |& 7.26 &| 9.07 & |
|00004360| 30 2e 38 38 20 26 20 36 | 34 2e 32 39 20 26 20 31 |0.88 & 6|4.29 & 1|
|00004370| 30 30 2e 35 39 20 26 20 | 31 31 2e 36 31 20 5c 5c |00.59 & |11.61 \\|
|00004380| 0a 58 31 39 20 26 20 37 | 2e 32 37 20 26 20 30 2e |.X19 & 7|.27 & 0.|
|00004390| 37 33 20 26 20 31 32 2e | 31 32 20 26 20 31 2e 32 |73 & 12.|12 & 1.2|
|000043a0| 31 20 26 20 32 37 2e 30 | 38 20 26 20 31 32 2e 34 |1 & 27.0|8 & 12.4|
|000043b0| 30 20 26 20 31 31 2e 33 | 34 20 5c 5c 0a 58 32 30 |0 & 11.3|4 \\.X20|
|000043c0| 20 26 20 31 30 2e 39 31 | 20 26 20 31 2e 34 37 20 | & 10.91| & 1.47 |
|000043d0| 26 20 31 37 2e 39 33 20 | 26 20 32 2e 34 30 20 26 |& 17.93 |& 2.40 &|
|000043e0| 20 35 30 2e 34 31 20 26 | 20 31 32 2e 33 33 20 26 | 50.41 &| 12.33 &|
|000043f0| 20 31 31 2e 33 39 20 5c | 5c 0a 58 32 31 20 26 20 | 11.39 \|\.X21 & |
|00004400| 37 2e 31 33 20 26 20 31 | 2e 38 32 20 26 20 36 2e |7.13 & 1|.82 & 6.|
|00004410| 30 37 20 26 20 30 2e 36 | 30 20 26 20 31 35 2e 31 |07 & 0.6|0 & 15.1|
|00004420| 36 20 26 20 32 33 2e 34 | 33 20 26 20 36 2e 31 33 |6 & 23.4|3 & 6.13|
|00004430| 20 5c 5c 0a 58 32 32 20 | 26 20 36 2e 30 36 20 26 | \\.X22 |& 6.06 &|
|00004440| 20 35 2e 31 35 20 26 20 | 38 2e 35 39 20 26 20 30 | 5.15 & |8.59 & 0|
|00004450| 2e 38 36 20 26 20 34 37 | 2e 30 35 20 26 20 39 30 |.86 & 47|.05 & 90|
|00004460| 2e 37 36 20 26 20 35 2e | 39 34 20 5c 5c 0a 58 32 |.76 & 5.|94 \\.X2|
|00004470| 33 20 26 20 37 2e 31 30 | 20 26 20 30 2e 39 33 20 |3 & 7.10| & 0.93 |
|00004480| 26 20 39 2e 33 33 20 26 | 20 30 2e 39 31 20 26 20 |& 9.33 &| 0.91 & |
|00004490| 33 30 2e 36 39 20 26 20 | 39 2e 34 31 20 26 20 38 |30.69 & |9.41 & 8|
|000044a0| 2e 39 39 20 5c 5c 0a 58 | 32 34 20 26 20 33 2e 35 |.99 \\.X|24 & 3.5|
|000044b0| 33 20 26 20 36 2e 30 30 | 20 26 20 31 30 2e 30 30 |3 & 6.00| & 10.00|
|000044c0| 20 26 20 31 2e 30 30 20 | 26 20 38 2e 33 32 20 26 | & 1.00 |& 8.32 &|
|000044d0| 20 31 2e 39 35 20 26 20 | 31 2e 38 37 20 5c 5c 0a | 1.95 & |1.87 \\.|
|000044e0| 58 48 61 72 6d 6f 6e 69 | 63 20 4d 65 61 6e 20 26 |XHarmoni|c Mean &|
|000044f0| 20 35 2e 35 39 20 26 20 | 31 2e 30 39 20 26 20 39 | 5.59 & |1.09 & 9|
|00004500| 2e 33 37 20 26 20 30 2e | 38 37 20 26 20 32 32 2e |.37 & 0.|87 & 22.|
|00004510| 33 38 20 26 20 39 2e 32 | 36 20 26 20 35 2e 37 20 |38 & 9.2|6 & 5.7 |
|00004520| 5c 5c 0a 58 5c 68 6c 69 | 6e 65 0a 58 5c 65 6e 64 |\\.X\hli|ne.X\end|
|00004530| 7b 74 61 62 75 6c 61 72 | 7d 0a 58 5c 65 6e 64 7b |{tabular|}.X\end{|
|00004540| 74 61 62 6c 65 7d 0a 58 | 0a 58 0a 58 5c 62 65 67 |table}.X|.X.X\beg|
|00004550| 69 6e 7b 74 61 62 6c 65 | 7d 5b 68 74 62 70 5d 0a |in{table|}[htbp].|
|00004560| 58 5c 63 61 70 74 69 6f | 6e 7b 52 65 73 75 6c 74 |X\captio|n{Result|
|00004570| 73 20 69 6e 20 4d 65 67 | 61 66 6c 6f 70 73 7d 0a |s in Meg|aflops}.|
|00004580| 58 5c 73 6d 61 6c 6c 0a | 58 5c 62 65 67 69 6e 7b |X\small.|X\begin{|
|00004590| 74 61 62 75 6c 61 72 7d | 7b 7c 72 7c 72 72 7c 72 |tabular}|{|r|rr|r|
|000045a0| 72 7c 72 72 7c 7d 0a 58 | 5c 68 6c 69 6e 65 0a 58 |r|rr|}.X|\hline.X|
|000045b0| 7b 5c 62 66 20 4d 61 6e | 75 66 61 63 74 75 72 65 |{\bf Man|ufacture|
|000045c0| 7d 20 26 20 5c 6d 75 6c | 74 69 63 6f 6c 75 6d 6e |} & \mul|ticolumn|
|000045d0| 7b 32 7d 7b 7c 63 7c 7d | 7b 43 6f 6e 76 65 78 7d |{2}{|c|}|{Convex}|
|000045e0| 20 26 0a 58 5c 6d 75 6c | 74 69 63 6f 6c 75 6d 6e | &.X\mul|ticolumn|
|000045f0| 7b 32 7d 7b 7c 63 7c 7d | 7b 53 69 6c 69 63 6f 6e |{2}{|c|}|{Silicon|
|00004600| 20 47 72 61 70 68 69 63 | 73 7d 20 26 20 5c 6d 75 | Graphic|s} & \mu|
|00004610| 6c 74 69 63 6f 6c 75 6d | 6e 7b 32 7d 7b 7c 63 7c |lticolum|n{2}{|c||
|00004620| 7d 7b 53 75 6e 7d 20 5c | 5c 0a 58 7b 5c 62 66 20 |}{Sun} \|\.X{\bf |
|00004630| 4d 6f 64 65 6c 7d 20 26 | 20 5c 6d 75 6c 74 69 63 |Model} &| \multic|
|00004640| 6f 6c 75 6d 6e 7b 32 7d | 7b 7c 63 7c 7d 7b 43 31 |olumn{2}|{|c|}{C1|
|00004650| 7d 20 26 20 5c 6d 75 6c | 74 69 63 6f 6c 75 6d 6e |} & \mul|ticolumn|
|00004660| 7b 32 7d 7b 7c 63 7c 7d | 7b 49 72 69 73 20 34 44 |{2}{|c|}|{Iris 4D|
|00004670| 7d 20 20 26 0a 58 5c 6d | 75 6c 74 69 63 6f 6c 75 |} &.X\m|ulticolu|
|00004680| 6d 6e 7b 32 7d 7b 7c 63 | 7c 7d 7b 53 75 6e 20 33 |mn{2}{|c||}{Sun 3|
|00004690| 2f 32 35 30 7d 20 5c 5c | 0a 58 7b 5c 62 66 20 43 |/250} \\|.X{\bf C|
|000046a0| 6f 6d 70 69 6c 65 72 7d | 20 26 20 76 63 20 26 20 |ompiler}| & vc & |
|000046b0| 66 63 20 26 20 4d 69 70 | 73 20 63 63 20 26 20 4d |fc & Mip|s cc & M|
|000046c0| 69 70 73 20 66 37 37 20 | 26 20 63 63 20 26 20 66 |ips f77 |& cc & f|
|000046d0| 37 37 20 5c 5c 0a 58 5c | 68 6c 69 6e 65 0a 58 31 |77 \\.X\|hline.X1|
|000046e0| 20 26 20 31 31 30 32 2e | 39 30 20 26 20 31 37 35 | & 1102.|90 & 175|
|000046f0| 2e 32 33 20 26 20 38 2e | 39 34 20 26 20 31 2e 33 |.23 & 8.|94 & 1.3|
|00004700| 32 20 26 20 31 2e 33 35 | 20 26 20 30 2e 31 38 20 |2 & 1.35| & 0.18 |
|00004710| 5c 5c 0a 58 32 20 26 20 | 38 2e 34 39 20 26 20 31 |\\.X2 & |8.49 & 1|
|00004720| 2e 35 37 20 26 20 37 2e | 37 36 20 26 20 31 2e 32 |.57 & 7.|76 & 1.2|
|00004730| 39 20 26 20 31 2e 31 31 | 20 26 20 30 2e 31 32 20 |9 & 1.11| & 0.12 |
|00004740| 5c 5c 0a 58 33 20 26 20 | 35 2e 38 32 20 26 20 39 |\\.X3 & |5.82 & 9|
|00004750| 2e 35 37 20 26 20 36 2e | 39 30 20 26 20 31 2e 33 |.57 & 6.|90 & 1.3|
|00004760| 33 20 26 20 31 2e 31 30 | 20 26 20 30 2e 32 30 20 |3 & 1.10| & 0.20 |
|00004770| 5c 5c 0a 58 34 20 26 20 | 37 2e 33 37 20 26 20 31 |\\.X4 & |7.37 & 1|
|00004780| 2e 33 34 20 26 20 36 2e | 30 30 20 26 20 30 2e 37 |.34 & 6.|00 & 0.7|
|00004790| 31 20 26 20 30 2e 39 39 | 20 26 20 30 2e 31 31 20 |1 & 0.99| & 0.11 |
|000047a0| 5c 5c 0a 58 35 20 26 20 | 36 2e 38 31 20 26 20 31 |\\.X5 & |6.81 & 1|
|000047b0| 2e 33 32 20 26 20 35 2e | 30 30 20 26 20 30 2e 36 |.32 & 5.|00 & 0.6|
|000047c0| 39 20 26 20 31 2e 30 35 | 20 26 20 30 2e 31 31 20 |9 & 1.05| & 0.11 |
|000047d0| 5c 5c 0a 58 36 20 26 20 | 34 2e 31 36 20 26 20 33 |\\.X6 & |4.16 & 3|
|000047e0| 2e 38 30 20 26 20 35 2e | 36 37 20 26 20 30 2e 38 |.80 & 5.|67 & 0.8|
|000047f0| 36 20 26 20 30 2e 39 37 | 20 26 20 30 2e 31 32 20 |6 & 0.97| & 0.12 |
|00004800| 5c 5c 0a 58 37 20 26 20 | 31 38 31 31 2e 35 30 20 |\\.X7 & |1811.50 |
|00004810| 26 20 33 33 31 2e 35 32 | 20 26 20 31 33 2e 33 38 |& 331.52| & 13.38|
|00004820| 20 26 20 31 2e 37 35 20 | 26 20 31 2e 39 33 20 26 | & 1.75 |& 1.93 &|
|00004830| 20 30 2e 31 38 20 5c 5c | 0a 58 38 20 26 20 31 30 | 0.18 \\|.X8 & 10|
|00004840| 2e 38 32 20 26 20 32 34 | 37 2e 39 35 20 26 20 31 |.82 & 24|7.95 & 1|
|00004850| 32 2e 37 33 20 26 20 31 | 2e 32 35 20 26 20 31 2e |2.73 & 1|.25 & 1.|
|00004860| 34 31 20 26 20 30 2e 31 | 36 09 20 5c 5c 0a 58 39 |41 & 0.1|6. \\.X9|
|00004870| 20 26 20 31 34 32 38 2e | 39 30 20 26 20 31 39 35 | & 1428.|90 & 195|
|00004880| 2e 38 32 20 26 20 31 33 | 2e 32 31 20 26 20 31 2e |.82 & 13|.21 & 1.|
|00004890| 35 36 20 26 20 31 2e 36 | 36 20 26 20 30 2e 31 36 |56 & 1.6|6 & 0.16|
|000048a0| 20 5c 5c 0a 58 31 30 20 | 26 20 32 2e 35 37 20 26 | \\.X10 |& 2.57 &|
|000048b0| 20 37 2e 31 35 20 26 20 | 38 2e 32 36 20 26 20 30 | 7.15 & |8.26 & 0|
|000048c0| 2e 39 31 20 26 20 30 2e | 37 34 20 26 20 30 2e 30 |.91 & 0.|74 & 0.0|
|000048d0| 39 20 5c 5c 0a 58 31 31 | 20 26 20 34 2e 37 32 20 |9 \\.X11| & 4.72 |
|000048e0| 26 20 32 2e 31 38 20 26 | 20 33 2e 35 37 20 26 20 |& 2.18 &| 3.57 & |
|000048f0| 30 2e 36 33 20 26 20 30 | 2e 37 32 20 26 20 30 2e |0.63 & 0|.72 & 0.|
|00004900| 30 38 20 5c 5c 0a 58 31 | 32 20 26 20 32 2e 35 35 |08 \\.X1|2 & 2.55|
|00004910| 20 26 20 31 36 2e 33 34 | 20 26 20 33 2e 35 37 20 | & 16.34| & 3.57 |
|00004920| 26 20 30 2e 36 32 20 26 | 20 30 2e 37 35 20 26 20 |& 0.62 &| 0.75 & |
|00004930| 30 2e 30 38 20 5c 5c 0a | 58 31 33 20 26 20 31 2e |0.08 \\.|X13 & 1.|
|00004940| 37 33 20 26 20 30 2e 35 | 36 20 26 20 32 2e 32 34 |73 & 0.5|6 & 2.24|
|00004950| 20 26 20 30 2e 31 34 20 | 26 20 30 2e 34 35 20 26 | & 0.14 |& 0.45 &|
|00004960| 20 30 2e 30 35 20 5c 5c | 0a 58 31 34 20 26 20 34 | 0.05 \\|.X14 & 4|
|00004970| 2e 32 34 20 26 20 31 2e | 33 34 20 26 20 34 2e 32 |.24 & 1.|34 & 4.2|
|00004980| 37 20 26 20 30 2e 33 37 | 20 26 20 30 2e 37 33 20 |7 & 0.37| & 0.73 |
|00004990| 26 20 30 2e 30 38 20 5c | 5c 0a 58 31 35 20 26 20 |& 0.08 \|\.X15 & |
|000049a0| 33 2e 39 34 20 26 20 31 | 2e 36 35 20 26 20 35 2e |3.94 & 1|.65 & 5.|
|000049b0| 31 34 20 26 20 30 2e 36 | 31 20 26 20 31 2e 34 31 |14 & 0.6|1 & 1.41|
|000049c0| 20 26 20 30 2e 32 33 20 | 5c 5c 0a 58 31 36 20 26 | & 0.23 |\\.X16 &|
|000049d0| 20 35 2e 31 38 20 26 20 | 30 2e 38 38 20 26 20 37 | 5.18 & |0.88 & 7|
|000049e0| 2e 35 37 20 26 20 30 2e | 38 38 20 26 20 31 2e 31 |.57 & 0.|88 & 1.1|
|000049f0| 38 20 26 20 30 2e 31 37 | 20 5c 5c 0a 58 31 37 20 |8 & 0.17| \\.X17 |
|00004a00| 26 20 37 2e 35 35 20 26 | 20 31 2e 33 31 20 26 20 |& 7.55 &| 1.31 & |
|00004a10| 31 31 2e 33 36 20 26 20 | 31 2e 38 32 20 26 20 30 |11.36 & |1.82 & 0|
|00004a20| 2e 39 39 20 26 20 30 2e | 31 36 20 5c 5c 0a 58 31 |.99 & 0.|16 \\.X1|
|00004a30| 38 20 26 20 38 2e 35 30 | 20 26 20 31 31 2e 33 38 |8 & 8.50| & 11.38|
|00004a40| 20 26 20 39 2e 39 39 20 | 26 20 31 2e 31 32 20 26 | & 9.99 |& 1.12 &|
|00004a50| 20 31 2e 33 35 20 26 20 | 30 2e 31 36 20 5c 5c 0a | 1.35 & |0.16 \\.|
|00004a60| 58 31 39 20 26 20 37 2e | 38 39 20 26 20 31 2e 38 |X19 & 7.|89 & 1.8|
|00004a70| 33 20 26 20 35 2e 35 31 | 20 26 20 31 2e 30 31 20 |3 & 5.51| & 1.01 |
|00004a80| 26 20 30 2e 39 36 20 26 | 20 30 2e 31 32 20 5c 5c |& 0.96 &| 0.12 \\|
|00004a90| 0a 58 32 30 20 26 20 37 | 2e 31 37 20 26 20 31 2e |.X20 & 7|.17 & 1.|
|00004aa0| 36 30 20 26 20 31 30 2e | 38 33 20 26 20 31 2e 34 |60 & 10.|83 & 1.4|
|00004ab0| 32 20 26 20 31 2e 37 32 | 20 26 20 30 2e 32 35 20 |2 & 1.72| & 0.25 |
|00004ac0| 5c 5c 0a 58 32 31 20 26 | 20 33 2e 39 37 20 26 20 |\\.X21 &| 3.97 & |
|00004ad0| 37 2e 36 36 20 26 20 36 | 2e 39 33 20 26 20 30 2e |7.66 & 6|.93 & 0.|
|00004ae0| 39 31 20 26 20 30 2e 38 | 34 20 26 20 30 2e 31 32 |91 & 0.8|4 & 0.12|
|00004af0| 20 5c 5c 0a 58 32 32 20 | 26 20 35 2e 36 30 20 26 | \\.X22 |& 5.60 &|
|00004b00| 20 31 30 31 2e 31 38 20 | 26 20 36 2e 38 37 20 26 | 101.18 |& 6.87 &|
|00004b10| 20 30 2e 39 30 20 26 20 | 31 2e 39 34 20 26 20 30 | 0.90 & |1.94 & 0|
|00004b20| 2e 33 32 20 5c 5c 0a 58 | 32 33 20 26 20 36 2e 35 |.32 \\.X|23 & 6.5|
|00004b30| 39 20 26 20 32 2e 35 32 | 20 26 20 39 2e 30 37 20 |9 & 2.52| & 9.07 |
|00004b40| 26 20 31 2e 30 35 20 26 | 20 31 2e 32 31 20 26 20 |& 1.05 &| 1.21 & |
|00004b50| 30 2e 31 34 20 5c 5c 0a | 58 32 34 20 26 20 39 30 |0.14 \\.|X24 & 90|
|00004b60| 2e 34 36 20 26 20 39 2e | 31 36 20 26 20 34 2e 33 |.46 & 9.|16 & 4.3|
|00004b70| 35 20 26 20 30 2e 36 33 | 20 26 20 31 2e 31 33 20 |5 & 0.63| & 1.13 |
|00004b80| 26 20 30 2e 31 34 20 5c | 5c 0a 58 48 61 72 6d 6f |& 0.14 \|\.XHarmo|
|00004b90| 6e 69 63 20 4d 65 61 6e | 20 26 20 35 2e 36 32 20 |nic Mean| & 5.62 |
|00004ba0| 26 20 32 2e 33 37 20 26 | 20 36 2e 30 39 20 26 20 |& 2.37 &| 6.09 & |
|00004bb0| 30 2e 37 32 20 26 20 31 | 2e 30 32 20 26 20 30 2e |0.72 & 1|.02 & 0.|
|00004bc0| 31 33 20 5c 5c 0a 58 5c | 68 6c 69 6e 65 0a 58 5c |13 \\.X\|hline.X\|
|00004bd0| 65 6e 64 7b 74 61 62 75 | 6c 61 72 7d 0a 58 5c 65 |end{tabu|lar}.X\e|
|00004be0| 6e 64 7b 74 61 62 6c 65 | 7d 0a 58 0a 58 5c 73 65 |nd{table|}.X.X\se|
|00004bf0| 63 74 69 6f 6e 7b 41 6c | 6c 69 61 6e 74 20 50 65 |ction{Al|liant Pe|
|00004c00| 72 66 6f 72 6d 61 6e 63 | 65 7d 0a 58 0a 58 54 68 |rformanc|e}.X.XTh|
|00004c10| 65 20 41 6c 6c 69 61 6e | 74 20 46 6f 72 74 72 61 |e Allian|t Fortra|
|00004c20| 6e 20 63 6f 6d 70 69 6c | 65 72 20 70 65 72 66 6f |n compil|er perfo|
|00004c30| 72 6d 73 20 61 6e 61 6c | 79 73 69 73 20 74 6f 20 |rms anal|ysis to |
|00004c40| 64 65 74 65 72 6d 69 6e | 65 20 69 66 20 61 20 6c |determin|e if a l|
|00004c50| 6f 6f 70 0a 58 69 73 20 | 76 65 63 74 6f 72 69 7a |oop.Xis |vectoriz|
|00004c60| 61 62 6c 65 20 6f 72 20 | 63 61 6e 20 62 65 20 65 |able or |can be e|
|00004c70| 78 65 63 75 74 65 64 20 | 63 6f 6e 63 75 72 72 65 |xecuted |concurre|
|00004c80| 6e 74 6c 79 20 6f 6e 20 | 6d 75 6c 74 69 70 6c 65 |ntly on |multiple|
|00004c90| 0a 58 70 72 6f 63 65 73 | 73 6f 72 73 2e 20 20 49 |.Xproces|sors. I|
|00004ca0| 66 20 74 68 65 20 6c 6f | 6f 70 20 63 61 6e 20 62 |f the lo|op can b|
|00004cb0| 65 20 65 78 65 63 75 74 | 65 64 20 63 6f 6e 63 75 |e execut|ed concu|
|00004cc0| 72 72 65 6e 74 6c 79 20 | 61 6e 64 20 69 6e 20 76 |rrently |and in v|
|00004cd0| 65 63 74 6f 72 0a 58 6d | 6f 64 65 2c 20 69 74 20 |ector.Xm|ode, it |
|00004ce0| 74 72 69 65 73 20 74 6f | 20 66 69 6e 64 20 61 20 |tries to| find a |
|00004cf0| 77 61 79 20 74 6f 20 75 | 73 65 20 62 6f 74 68 20 |way to u|se both |
|00004d00| 76 65 63 74 6f 72 69 7a | 61 74 69 6f 6e 20 61 6e |vectoriz|ation an|
|00004d10| 64 0a 58 63 6f 6e 63 75 | 72 72 65 6e 74 6c 79 20 |d.Xconcu|rrently |
|00004d20| 73 69 6d 75 6c 74 61 6e | 65 6f 75 73 6c 79 2e 20 |simultan|eously. |
|00004d30| 20 54 68 65 20 41 6c 6c | 69 61 6e 74 20 43 20 63 | The All|iant C c|
|00004d40| 6f 6d 70 69 6c 65 72 20 | 70 65 72 66 6f 72 6d 73 |ompiler |performs|
|00004d50| 20 6e 65 69 74 68 65 72 | 0a 58 76 65 63 74 6f 72 | neither|.Xvector|
|00004d60| 69 7a 61 74 69 6f 6e 20 | 6e 6f 72 20 63 6f 6e 63 |ization |nor conc|
|00004d70| 75 72 72 65 6e 63 79 20 | 61 6e 61 6c 79 73 69 73 |urrency |analysis|
|00004d80| 20 61 6e 64 20 61 6c 77 | 61 79 73 20 70 72 6f 64 | and alw|ays prod|
|00004d90| 75 63 65 73 20 73 63 61 | 6c 61 72 0a 58 73 69 6e |uces sca|lar.Xsin|
|00004da0| 67 6c 65 20 70 72 6f 63 | 65 73 73 6f 72 20 63 6f |gle proc|essor co|
|00004db0| 64 65 2e 20 20 54 68 65 | 20 41 6c 6c 69 61 6e 74 |de. The| Alliant|
|00004dc0| 20 46 6f 72 74 72 61 6e | 20 63 6f 6d 70 69 6c 65 | Fortran| compile|
|00004dd0| 72 20 73 75 66 66 65 72 | 73 20 66 72 6f 6d 0a 58 |r suffer|s from.X|
|00004de0| 74 72 79 69 6e 67 20 74 | 6f 20 68 61 72 64 2e 20 |trying t|o hard. |
|00004df0| 20 53 6f 6d 65 74 69 6d | 65 73 20 69 74 20 70 72 | Sometim|es it pr|
|00004e00| 6f 64 75 63 65 73 20 76 | 65 63 74 6f 72 20 6f 72 |oduces v|ector or|
|00004e10| 20 63 6f 6e 63 75 72 72 | 65 6e 74 20 63 6f 64 65 | concurr|ent code|
|00004e20| 20 66 6f 72 0a 58 77 68 | 69 63 68 20 74 68 65 20 | for.Xwh|ich the |
|00004e30| 6f 76 65 72 68 65 61 64 | 20 6f 66 20 74 68 65 20 |overhead| of the |
|00004e40| 63 6f 64 65 20 65 78 63 | 65 65 64 73 20 74 68 65 |code exc|eeds the|
|00004e50| 20 67 61 69 6e 20 66 72 | 6f 6d 20 74 68 65 20 66 | gain fr|om the f|
|00004e60| 61 63 69 6c 69 74 79 2e | 20 20 49 6e 0a 58 74 68 |acility.| In.Xth|
|00004e70| 65 73 65 20 63 61 73 65 | 2c 20 73 75 63 68 20 61 |ese case|, such a|
|00004e80| 73 20 6c 6f 6f 70 73 20 | 33 2c 20 39 20 61 6e 64 |s loops |3, 9 and|
|00004e90| 20 31 33 2c 20 74 68 65 | 20 73 63 61 6c 61 72 20 | 13, the| scalar |
|00004ea0| 43 20 63 6f 64 65 20 70 | 65 72 66 6f 72 6d 73 20 |C code p|erforms |
|00004eb0| 6d 6f 72 65 0a 58 65 66 | 66 69 63 69 65 6e 74 6c |more.Xef|ficientl|
|00004ec0| 79 20 74 68 61 6e 20 74 | 68 65 20 6f 70 74 69 6d |y than t|he optim|
|00004ed0| 69 7a 65 64 20 46 6f 72 | 74 72 61 6e 20 63 6f 64 |ized For|tran cod|
|00004ee0| 65 2e 20 20 49 6e 20 6f | 74 68 65 72 20 63 61 73 |e. In o|ther cas|
|00004ef0| 65 73 2c 20 73 75 63 68 | 20 61 73 0a 58 6c 6f 6f |es, such| as.Xloo|
|00004f00| 70 73 20 31 20 61 6e 64 | 20 37 2c 20 74 68 65 20 |ps 1 and| 7, the |
|00004f10| 46 6f 72 74 72 61 6e 20 | 63 6f 64 65 20 6f 75 74 |Fortran |code out|
|00004f20| 20 70 65 72 66 6f 72 6d | 73 20 74 68 65 20 43 20 | perform|s the C |
|00004f30| 63 6f 64 65 2e 20 20 49 | 6e 20 6e 6f 20 63 61 73 |code. I|n no cas|
|00004f40| 65 0a 58 64 6f 65 73 20 | 74 68 65 20 6f 70 74 69 |e.Xdoes |the opti|
|00004f50| 6d 69 7a 61 74 69 6f 6e | 20 67 69 76 65 20 61 20 |mization| give a |
|00004f60| 73 70 65 65 64 75 70 20 | 6f 66 20 6d 6f 72 65 20 |speedup |of more |
|00004f70| 74 68 61 6e 20 32 20 6f | 76 65 72 20 74 68 65 20 |than 2 o|ver the |
|00004f80| 73 63 61 6c 61 72 0a 58 | 63 6f 64 65 2e 0a 58 0a |scalar.X|code..X.|
|00004f90| 58 5c 73 65 63 74 69 6f | 6e 7b 41 6d 64 61 68 6c |X\sectio|n{Amdahl|
|00004fa0| 20 50 65 72 66 6f 72 6d | 61 6e 63 65 7d 0a 58 0a | Perform|ance}.X.|
|00004fb0| 58 54 68 65 20 41 6d 64 | 61 68 6c 20 46 6f 72 74 |XThe Amd|ahl Fort|
|00004fc0| 72 61 6e 20 63 6f 6d 70 | 69 6c 65 72 20 69 73 20 |ran comp|iler is |
|00004fd0| 61 20 73 74 72 61 69 67 | 68 74 66 6f 72 77 61 72 |a straig|htforwar|
|00004fe0| 64 20 70 6f 72 74 20 6f | 66 20 74 68 65 20 42 53 |d port o|f the BS|
|00004ff0| 44 20 55 6e 69 78 0a 58 | 66 37 37 20 63 6f 6d 70 |D Unix.X|f77 comp|
|00005000| 69 6c 65 72 2e 20 20 49 | 74 20 64 6f 65 73 20 6e |iler. I|t does n|
|00005010| 6f 74 20 61 70 70 65 61 | 72 20 74 6f 20 68 61 76 |ot appea|r to hav|
|00005020| 65 20 62 65 65 6e 20 74 | 75 6e 65 64 20 74 6f 20 |e been t|uned to |
|00005030| 74 68 65 20 41 6d 64 61 | 68 6c 0a 58 61 72 63 68 |the Amda|hl.Xarch|
|00005040| 69 74 65 63 74 75 72 65 | 20 61 74 20 61 6c 6c 20 |itecture| at all |
|00005050| 61 6e 64 20 67 65 6e 65 | 72 61 74 65 73 20 76 65 |and gene|rates ve|
|00005060| 72 79 20 70 6f 6f 72 20 | 63 6f 64 65 2e 20 20 54 |ry poor |code. T|
|00005070| 68 65 20 41 6d 64 61 68 | 6c 20 43 0a 58 63 6f 6d |he Amdah|l C.Xcom|
|00005080| 70 69 6c 65 72 20 69 73 | 20 6d 6f 72 65 20 74 75 |piler is| more tu|
|00005090| 6e 65 64 20 74 6f 20 74 | 68 65 20 61 72 63 68 69 |ned to t|he archi|
|000050a0| 74 65 63 74 75 72 65 20 | 61 6e 64 20 69 6e 20 73 |tecture |and in s|
|000050b0| 6f 6d 65 20 63 61 73 65 | 73 2c 20 41 6d 64 61 68 |ome case|s, Amdah|
|000050c0| 6c 0a 58 73 63 61 6c 61 | 72 20 63 6f 64 65 20 70 |l.Xscala|r code p|
|000050d0| 65 72 66 6f 72 6d 61 6e | 63 65 20 61 70 70 72 6f |erforman|ce appro|
|000050e0| 61 63 68 65 73 20 74 68 | 61 74 20 6f 66 20 74 68 |aches th|at of th|
|000050f0| 65 20 43 72 61 79 20 32 | 2e 20 42 65 63 61 75 73 |e Cray 2|. Becaus|
|00005100| 65 20 6f 66 20 74 68 65 | 0a 58 6c 61 72 67 65 20 |e of the|.Xlarge |
|00005110| 64 69 66 66 65 72 65 6e | 63 65 20 62 65 74 77 65 |differen|ce betwe|
|00005120| 65 6e 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 73 |en the c|ompilers|
|00005130| 2c 20 61 20 64 65 74 61 | 69 6c 65 64 20 63 6f 6d |, a deta|iled com|
|00005140| 70 61 72 69 73 6f 6e 20 | 77 61 73 20 6e 6f 74 0a |parison |was not.|
|00005150| 58 75 6e 64 65 72 74 61 | 6b 65 6e 2e 20 0a 58 0a |Xunderta|ken. .X.|
|00005160| 58 5c 73 65 63 74 69 6f | 6e 7b 43 72 61 79 20 32 |X\sectio|n{Cray 2|
|00005170| 20 50 65 72 66 6f 72 6d | 61 6e 63 65 7d 0a 58 0a | Perform|ance}.X.|
|00005180| 58 54 68 65 72 65 20 61 | 72 65 20 66 6f 75 72 20 |XThere a|re four |
|00005190| 6c 6f 6f 70 73 20 28 31 | 2c 20 37 2c 20 39 2c 20 |loops (1|, 7, 9, |
|000051a0| 61 6e 64 20 31 32 29 20 | 66 6f 72 20 77 68 69 63 |and 12) |for whic|
|000051b0| 68 20 43 20 61 63 68 69 | 65 76 65 73 0a 58 60 60 |h C achi|eves.X``|
|000051c0| 69 6d 70 6f 73 73 69 62 | 6c 65 27 27 20 70 65 72 |impossib|le'' per|
|000051d0| 66 6f 72 6d 61 6e 63 65 | 20 6f 6e 20 74 68 65 20 |formance| on the |
|000051e0| 43 72 61 79 20 32 2c 20 | 61 73 20 61 20 72 65 73 |Cray 2, |as a res|
|000051f0| 75 6c 74 20 6f 66 20 65 | 78 63 65 65 64 69 6e 67 |ult of e|xceeding|
|00005200| 20 74 68 65 0a 58 6d 61 | 78 69 6d 75 6d 20 70 65 | the.Xma|ximum pe|
|00005210| 72 66 6f 72 6d 61 6e 63 | 65 20 6f 66 20 61 20 73 |rformanc|e of a s|
|00005220| 69 6e 67 6c 65 20 70 72 | 6f 63 65 73 73 6f 72 2e |ingle pr|ocessor.|
|00005230| 20 20 54 68 65 73 65 20 | 61 72 65 20 74 68 65 20 | These |are the |
|00005240| 72 65 73 75 6c 74 20 6f | 66 20 61 6e 0a 58 61 72 |result o|f an.Xar|
|00005250| 74 69 66 61 63 74 20 6f | 66 20 74 68 65 20 62 65 |tifact o|f the be|
|00005260| 6e 63 68 6d 61 72 6b 2e | 20 20 43 20 6f 75 74 70 |nchmark.| C outp|
|00005270| 65 72 66 6f 72 6d 73 20 | 74 68 65 20 46 6f 72 74 |erforms |the Fort|
|00005280| 72 61 6e 20 63 6f 64 65 | 20 6f 6e 20 6d 6f 73 74 |ran code| on most|
|00005290| 0a 58 73 63 61 6c 61 72 | 20 6c 6f 6f 70 73 2c 20 |.Xscalar| loops, |
|000052a0| 28 35 2c 20 31 31 2c 20 | 31 33 2c 20 31 36 2c 20 |(5, 11, |13, 16, |
|000052b0| 31 37 2c 20 31 39 2c 20 | 32 30 2c 20 61 6e 64 20 |17, 19, |20, and |
|000052c0| 32 34 29 20 77 69 74 68 | 20 6f 6e 65 20 65 78 63 |24) with| one exc|
|000052d0| 65 70 74 69 6f 6e 2e 0a | 58 28 32 32 29 20 46 6f |eption..|X(22) Fo|
|000052e0| 72 74 72 61 6e 20 72 65 | 63 6f 67 6e 69 7a 65 73 |rtran re|cognizes|
|000052f0| 20 6d 6f 72 65 20 6c 6f | 6f 70 73 20 61 73 20 76 | more lo|ops as v|
|00005300| 65 63 74 6f 72 69 7a 61 | 62 6c 65 20 74 68 61 6e |ectoriza|ble than|
|00005310| 20 43 2c 20 61 6e 64 0a | 58 70 72 6f 64 75 63 65 | C, and.|Xproduce|
|00005320| 73 20 20 62 65 74 74 65 | 72 20 70 65 72 66 6f 72 |s bette|r perfor|
|00005330| 6d 61 6e 63 65 20 6f 6e | 20 74 68 65 20 6f 6e 65 |mance on| the one|
|00005340| 20 6c 6f 6f 70 20 28 31 | 38 29 20 77 68 69 63 68 | loop (1|8) which|
|00005350| 20 62 6f 74 68 20 63 6f | 6d 70 69 6c 65 72 73 0a | both co|mpilers.|
|00005360| 58 76 65 63 74 6f 72 69 | 7a 65 2e 20 54 68 65 72 |Xvectori|ze. Ther|
|00005370| 65 20 69 73 20 6d 69 78 | 65 64 20 70 65 72 66 6f |e is mix|ed perfo|
|00005380| 72 6d 61 6e 63 65 20 6f | 6e 20 74 68 6f 73 65 20 |rmance o|n those |
|00005390| 6c 6f 6f 70 73 20 77 68 | 69 63 68 20 46 6f 72 74 |loops wh|ich Fort|
|000053a0| 72 61 6e 0a 58 76 65 63 | 74 6f 72 69 7a 65 73 20 |ran.Xvec|torizes |
|000053b0| 61 6e 64 20 43 20 64 6f | 65 73 20 6e 6f 74 2e 20 |and C do|es not. |
|000053c0| 20 49 6e 20 73 6f 6d 65 | 20 63 61 73 65 73 2c 20 | In some| cases, |
|000053d0| 28 32 2c 20 36 2c 20 31 | 34 2c 20 31 35 2c 20 61 |(2, 6, 1|4, 15, a|
|000053e0| 6e 64 20 32 33 29 20 74 | 68 65 0a 58 73 63 61 6c |nd 23) t|he.Xscal|
|000053f0| 61 72 20 43 20 63 6f 64 | 65 20 69 73 20 6d 6f 72 |ar C cod|e is mor|
|00005400| 65 20 65 66 66 69 63 69 | 65 6e 74 20 74 68 61 74 |e effici|ent that|
|00005410| 20 74 68 65 20 76 65 63 | 74 6f 72 20 46 6f 72 74 | the vec|tor Fort|
|00005420| 72 61 6e 20 63 6f 64 65 | 2e 20 49 6e 20 74 68 65 |ran code|. In the|
|00005430| 0a 58 72 65 6d 61 69 6e | 69 6e 67 20 63 61 73 65 |.Xremain|ing case|
|00005440| 73 20 28 33 2c 20 34 2c | 20 38 20 31 30 20 61 6e |s (3, 4,| 8 10 an|
|00005450| 64 20 20 32 31 29 20 74 | 68 65 20 76 65 63 74 6f |d 21) t|he vecto|
|00005460| 72 20 46 6f 72 74 72 61 | 6e 20 63 6f 64 65 20 69 |r Fortra|n code i|
|00005470| 73 20 6d 6f 72 65 0a 58 | 65 66 66 69 63 69 65 6e |s more.X|efficien|
|00005480| 74 20 74 68 61 6e 20 74 | 68 65 20 73 63 61 6c 61 |t than t|he scala|
|00005490| 72 20 43 20 63 6f 64 65 | 2e 20 0a 58 0a 58 54 68 |r C code|. .X.XTh|
|000054a0| 65 20 69 6d 70 6f 73 73 | 69 62 6c 65 20 70 65 72 |e imposs|ible per|
|000054b0| 66 6f 72 6d 61 6e 63 65 | 20 6f 66 20 43 20 69 73 |formance| of C is|
|000054c0| 20 61 20 72 65 73 75 6c | 74 20 6f 66 20 61 6e 20 | a resul|t of an |
|000054d0| 61 72 74 69 66 61 63 74 | 20 6f 66 20 74 68 65 0a |artifact| of the.|
|000054e0| 58 62 65 6e 63 68 6d 61 | 72 6b 73 2e 20 54 6f 20 |Xbenchma|rks. To |
|000054f0| 6f 62 74 61 69 6e 20 61 | 20 6c 61 72 67 65 20 65 |obtain a| large e|
|00005500| 6e 6f 75 67 68 20 74 69 | 6d 65 20 69 6e 74 65 72 |nough ti|me inter|
|00005510| 76 61 6c 20 66 6f 72 20 | 6d 65 61 6e 69 6e 67 66 |val for |meaningf|
|00005520| 75 6c 0a 58 6d 65 61 73 | 75 72 65 6d 65 6e 74 2c |ul.Xmeas|urement,|
|00005530| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 6c 6f 6f 70 | all of |the loop|
|00005540| 73 20 61 72 65 20 6f 66 | 20 74 68 65 20 66 6f 72 |s are of| the for|
|00005550| 6d 3a 0a 58 0a 58 5c 62 | 65 67 69 6e 7b 76 65 72 |m:.X.X\b|egin{ver|
|00005560| 62 61 74 69 6d 7d 0a 58 | 0a 58 46 4f 52 20 49 20 |batim}.X|.XFOR I |
|00005570| 3d 20 31 20 54 4f 20 4e | 55 4d 42 45 52 5f 4f 46 |= 1 TO N|UMBER_OF|
|00005580| 5f 50 41 53 53 45 53 20 | 44 4f 0a 58 20 20 42 45 |_PASSES |DO.X BE|
|00005590| 47 49 4e 0a 58 20 20 20 | 20 64 6f 5f 74 68 65 5f |GIN.X | do_the_|
|000055a0| 6c 6f 6f 70 5f 69 6e 5f | 71 75 65 73 74 69 6f 6e |loop_in_|question|
|000055b0| 0a 58 20 20 45 4e 44 0a | 58 0a 58 5c 65 6e 64 7b |.X END.|X.X\end{|
|000055c0| 76 65 72 62 61 74 69 6d | 7d 0a 58 0a 58 49 6e 20 |verbatim|}.X.XIn |
|000055d0| 74 68 65 20 69 6d 70 6f | 73 73 69 62 6c 65 20 63 |the impo|ssible c|
|000055e0| 61 73 65 73 2c 20 74 68 | 65 20 6c 6f 6f 70 20 69 |ases, th|e loop i|
|000055f0| 6e 20 71 75 65 73 74 69 | 6f 6e 20 69 73 20 6f 66 |n questi|on is of|
|00005600| 20 66 6f 72 6d 20 73 69 | 6d 69 6c 61 72 20 74 6f | form si|milar to|
|00005610| 3a 0a 58 0a 58 5c 62 65 | 67 69 6e 7b 76 65 72 62 |:.X.X\be|gin{verb|
|00005620| 61 74 69 6d 7d 0a 58 0a | 58 46 4f 52 20 4a 20 3d |atim}.X.|XFOR J =|
|00005630| 20 31 20 74 6f 20 41 52 | 52 41 59 5f 4c 45 4e 47 | 1 to AR|RAY_LENG|
|00005640| 54 48 20 44 4f 0a 58 20 | 20 42 45 47 49 4e 0a 58 |TH DO.X | BEGIN.X|
|00005650| 20 20 20 20 58 5b 4a 5d | 20 3a 3d 20 59 5b 4a 5d | X[J]| := Y[J]|
|00005660| 20 6f 70 20 5a 5b 4a 5d | 3b 0a 58 20 20 45 4e 44 | op Z[J]|;.X END|
|00005670| 0a 58 0a 58 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |.X.X\end|{verbati|
|00005680| 6d 7d 0a 58 0a 58 49 6e | 20 74 68 69 73 20 76 65 |m}.X.XIn| this ve|
|00005690| 72 79 20 73 69 6d 70 6c | 65 20 63 61 73 65 2c 20 |ry simpl|e case, |
|000056a0| 69 74 20 69 73 20 70 6f | 73 73 69 62 6c 65 20 66 |it is po|ssible f|
|000056b0| 6f 72 20 61 20 72 65 61 | 73 6f 6e 61 62 6c 65 20 |or a rea|sonable |
|000056c0| 63 6f 6d 70 69 6c 65 72 | 20 74 6f 0a 58 64 65 74 |compiler| to.Xdet|
|000056d0| 65 72 6d 69 6e 65 20 74 | 68 61 74 20 74 68 65 20 |ermine t|hat the |
|000056e0| 65 6e 74 69 72 65 20 69 | 6e 6e 65 72 20 6c 6f 6f |entire i|nner loo|
|000056f0| 70 20 69 73 20 69 6e 76 | 61 72 69 61 6e 74 20 77 |p is inv|ariant w|
|00005700| 69 74 68 20 72 65 73 70 | 65 63 74 20 74 6f 20 74 |ith resp|ect to t|
|00005710| 68 65 0a 58 6f 75 74 65 | 72 20 6c 6f 6f 70 2c 20 |he.Xoute|r loop, |
|00005720| 6d 6f 76 65 20 74 68 65 | 20 69 6e 6e 65 72 20 6c |move the| inner l|
|00005730| 6f 6f 70 20 6f 75 74 73 | 69 64 65 20 74 68 65 20 |oop outs|ide the |
|00005740| 6f 75 74 65 72 20 6c 6f | 6f 70 2c 20 61 6e 64 20 |outer lo|op, and |
|00005750| 74 68 65 6e 20 74 68 72 | 6f 77 0a 58 74 68 65 20 |then thr|ow.Xthe |
|00005760| 6f 75 74 65 72 20 6c 6f | 6f 70 20 61 77 61 79 20 |outer lo|op away |
|00005770| 62 65 63 61 75 73 65 20 | 69 74 20 64 6f 65 73 6e |because |it doesn|
|00005780| 27 74 20 63 6f 6d 70 75 | 74 65 20 61 6e 79 74 68 |'t compu|te anyth|
|00005790| 69 6e 67 2e 20 20 49 66 | 20 74 68 65 0a 58 76 61 |ing. If| the.Xva|
|000057a0| 72 69 61 62 6c 65 20 6f | 6e 20 74 68 65 20 6c 65 |riable o|n the le|
|000057b0| 66 74 20 73 69 64 65 20 | 6f 66 20 74 68 65 20 65 |ft side |of the e|
|000057c0| 71 75 61 74 69 6f 6e 20 | 6e 65 76 65 72 20 61 70 |quation |never ap|
|000057d0| 70 65 61 72 73 20 6f 6e | 20 74 68 65 20 72 69 67 |pears on| the rig|
|000057e0| 68 74 0a 58 73 69 64 65 | 2c 20 74 68 65 20 6c 6f |ht.Xside|, the lo|
|000057f0| 6f 70 20 69 73 20 69 6e | 76 61 72 69 61 6e 74 20 |op is in|variant |
|00005800| 61 6e 64 20 63 61 6e 20 | 62 65 20 63 6f 6c 6c 61 |and can |be colla|
|00005810| 70 73 65 64 2e 20 20 43 | 6c 6f 73 65 20 69 6e 73 |psed. C|lose ins|
|00005820| 70 65 63 74 69 6f 6e 0a | 58 73 68 6f 77 73 20 74 |pection.|Xshows t|
|00005830| 68 61 74 20 74 68 65 20 | 70 65 72 66 6f 72 6d 61 |hat the |performa|
|00005840| 6e 63 65 20 61 64 76 61 | 6e 74 61 67 65 20 6f 66 |nce adva|ntage of|
|00005850| 20 43 20 6f 6e 20 4c 6f | 6f 70 73 20 31 2c 20 37 | C on Lo|ops 1, 7|
|00005860| 2c 20 39 2c 20 61 6e 64 | 20 31 32 20 63 61 6e 0a |, 9, and| 12 can.|
|00005870| 58 62 65 20 65 78 70 6c | 61 69 6e 65 64 20 61 73 |Xbe expl|ained as|
|00005880| 20 61 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 69 | a resul|t of thi|
|00005890| 73 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 6f |s optimi|zation o|
|000058a0| 66 20 74 68 65 20 6f 75 | 74 65 72 20 6c 6f 6f 70 |f the ou|ter loop|
|000058b0| 2e 20 20 54 68 65 0a 58 | 46 6f 72 74 72 61 6e 20 |. The.X|Fortran |
|000058c0| 63 6f 6d 70 69 6c 65 72 | 20 6d 69 73 73 65 73 20 |compiler| misses |
|000058d0| 74 68 69 73 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |this opt|imizatio|
|000058e0| 6e 2e 0a 58 0a 58 54 68 | 65 20 6f 72 69 67 69 6e |n..X.XTh|e origin|
|000058f0| 61 6c 20 46 6f 72 74 72 | 61 6e 20 76 65 72 73 69 |al Fortr|an versi|
|00005900| 6f 6e 20 6f 66 20 4c 6f | 6f 70 20 32 20 63 6f 6e |on of Lo|op 2 con|
|00005910| 74 61 69 6e 73 20 61 20 | 63 6f 6d 70 69 6c 65 72 |tains a |compiler|
|00005920| 20 64 69 72 65 63 74 69 | 76 65 0a 58 74 6f 20 66 | directi|ve.Xto f|
|00005930| 6f 72 63 65 20 76 65 63 | 74 6f 72 69 7a 61 74 69 |orce vec|torizati|
|00005940| 6f 6e 2e 20 20 54 68 65 | 20 43 20 76 65 72 73 69 |on. The| C versi|
|00005950| 6f 6e 20 64 6f 65 73 20 | 6e 6f 74 20 66 6f 72 63 |on does |not forc|
|00005960| 65 20 76 65 63 74 6f 72 | 69 7a 61 74 69 6f 6e 2c |e vector|ization,|
|00005970| 0a 58 62 75 74 20 69 6e | 73 74 65 61 64 20 70 72 |.Xbut in|stead pr|
|00005980| 6f 64 75 63 65 73 20 73 | 63 61 6c 61 72 20 63 6f |oduces s|calar co|
|00005990| 64 65 2e 20 20 46 75 72 | 74 68 65 72 2c 20 74 68 |de. Fur|ther, th|
|000059a0| 65 20 76 65 63 74 6f 72 | 20 6c 65 6e 67 74 68 20 |e vector| length |
|000059b0| 69 73 20 31 30 31 2c 0a | 58 77 68 69 63 68 20 69 |is 101,.|Xwhich i|
|000059c0| 73 20 66 61 69 72 6c 79 | 20 73 68 6f 72 74 20 63 |s fairly| short c|
|000059d0| 6f 6d 70 61 72 65 64 20 | 74 6f 20 74 68 65 20 6f |ompared |to the o|
|000059e0| 76 65 72 68 65 61 64 20 | 69 6e 74 72 6f 64 75 63 |verhead |introduc|
|000059f0| 65 64 20 62 79 20 73 65 | 74 74 69 6e 67 0a 58 75 |ed by se|tting.Xu|
|00005a00| 70 20 74 68 65 20 76 65 | 63 74 6f 72 20 6c 6f 6f |p the ve|ctor loo|
|00005a10| 70 2e 20 20 43 20 70 72 | 6f 64 75 63 65 73 20 66 |p. C pr|oduces f|
|00005a20| 61 73 74 65 72 20 63 6f | 64 65 20 66 6f 72 20 74 |aster co|de for t|
|00005a30| 68 69 73 20 63 61 73 65 | 2c 20 61 73 20 61 20 72 |his case|, as a r|
|00005a40| 65 73 75 6c 74 0a 58 6f | 66 20 6e 6f 74 20 76 65 |esult.Xo|f not ve|
|00005a50| 63 74 6f 72 69 7a 69 6e | 67 20 74 68 65 20 6c 6f |ctorizin|g the lo|
|00005a60| 6f 70 2e 20 20 4c 6f 6f | 70 20 36 20 73 68 6f 77 |op. Loo|p 6 show|
|00005a70| 73 20 61 20 73 69 6d 69 | 6c 61 72 20 70 68 65 6e |s a simi|lar phen|
|00005a80| 6f 6d 65 6e 61 2e 20 20 | 49 6e 0a 58 74 68 69 73 |omena. |In.Xthis|
|00005a90| 20 63 61 73 65 2c 20 46 | 6f 72 74 72 61 6e 20 72 | case, F|ortran r|
|00005aa0| 65 63 6f 67 6e 69 7a 65 | 73 20 61 20 63 6f 6e 64 |ecognize|s a cond|
|00005ab0| 69 74 69 6f 6e 61 6c 20 | 64 65 70 65 6e 64 65 6e |itional |dependen|
|00005ac0| 63 79 20 61 6e 64 20 67 | 65 6e 65 72 61 74 65 73 |cy and g|enerates|
|00005ad0| 0a 58 63 6f 64 65 20 74 | 6f 20 75 73 65 20 76 65 |.Xcode t|o use ve|
|00005ae0| 63 74 6f 72 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |ctor ins|truction|
|00005af0| 73 20 77 68 65 6e 20 69 | 74 20 64 6f 65 73 6e 27 |s when i|t doesn'|
|00005b00| 74 20 6f 63 63 75 72 2e | 20 41 67 61 69 6e 20 74 |t occur.| Again t|
|00005b10| 68 65 0a 58 6f 76 65 72 | 68 65 61 64 20 69 73 20 |he.Xover|head is |
|00005b20| 6e 6f 74 20 6a 75 73 74 | 69 66 69 65 64 20 61 6e |not just|ified an|
|00005b30| 64 20 74 68 65 20 43 20 | 76 65 72 73 69 6f 6e 20 |d the C |version |
|00005b40| 69 73 20 66 61 73 74 65 | 72 2e 20 20 54 68 69 73 |is faste|r. This|
|00005b50| 20 61 6c 73 6f 0a 58 68 | 61 70 70 65 6e 73 20 69 | also.Xh|appens i|
|00005b60| 6e 20 6c 6f 6f 70 73 20 | 31 34 20 61 6e 64 20 32 |n loops |14 and 2|
|00005b70| 33 2e 20 0a 58 0a 58 49 | 6e 20 6f 74 68 65 72 20 |3. .X.XI|n other |
|00005b80| 63 61 73 65 73 2c 20 74 | 68 65 20 46 6f 72 74 72 |cases, t|he Fortr|
|00005b90| 61 6e 20 63 6f 6d 70 69 | 6c 65 72 20 76 65 63 74 |an compi|ler vect|
|00005ba0| 6f 72 69 7a 65 73 20 61 | 6e 64 20 74 68 65 20 43 |orizes a|nd the C|
|00005bb0| 20 63 6f 6d 70 69 6c 65 | 72 0a 58 64 6f 65 73 20 | compile|r.Xdoes |
|00005bc0| 6e 6f 74 20 61 6e 64 20 | 74 68 65 20 46 6f 72 74 |not and |the Fort|
|00005bd0| 72 61 6e 20 63 6f 64 65 | 20 63 6f 64 65 20 72 75 |ran code| code ru|
|00005be0| 6e 73 20 66 61 73 74 65 | 72 20 74 68 61 6e 20 74 |ns faste|r than t|
|00005bf0| 68 65 20 43 20 63 6f 64 | 65 2e 20 20 54 68 65 0a |he C cod|e. The.|
|00005c00| 58 70 65 72 66 6f 72 6d | 61 6e 63 65 20 69 6d 70 |Xperform|ance imp|
|00005c10| 72 6f 76 65 6d 65 6e 74 | 20 76 61 72 69 65 73 20 |rovement| varies |
|00005c20| 62 65 74 77 65 65 6e 20 | 31 2e 35 20 61 6e 64 20 |between |1.5 and |
|00005c30| 33 2e 32 20 74 69 6d 65 | 73 2e 0a 58 0a 58 49 6e |3.2 time|s..X.XIn|
|00005c40| 20 61 6c 6c 20 62 75 74 | 20 6f 6e 65 20 6f 66 20 | all but| one of |
|00005c50| 74 68 65 20 63 61 73 65 | 73 20 69 6e 20 77 68 69 |the case|s in whi|
|00005c60| 63 68 20 62 6f 74 68 20 | 6c 61 6e 67 75 61 67 65 |ch both |language|
|00005c70| 73 20 67 65 6e 65 72 61 | 74 65 20 73 63 61 6c 61 |s genera|te scala|
|00005c80| 72 0a 58 63 6f 64 65 2c | 20 43 20 67 65 6e 65 72 |r.Xcode,| C gener|
|00005c90| 61 74 65 73 20 6d 6f 72 | 65 20 65 66 66 69 63 69 |ates mor|e effici|
|00005ca0| 65 6e 74 20 63 6f 64 65 | 20 74 68 61 6e 20 46 6f |ent code| than Fo|
|00005cb0| 72 74 72 61 6e 2e 20 20 | 54 68 65 20 65 78 63 65 |rtran. |The exce|
|00005cc0| 70 74 69 6f 6e 20 69 73 | 0a 58 6c 6f 6f 70 73 20 |ption is|.Xloops |
|00005cd0| 32 32 2e 20 20 46 6f 72 | 74 72 61 6e 20 67 65 6e |22. For|tran gen|
|00005ce0| 65 72 61 74 65 73 20 20 | 69 6e 6c 69 6e 65 20 63 |erates |inline c|
|00005cf0| 6f 64 65 20 66 6f 72 20 | 74 68 65 20 5c 74 74 20 |ode for |the \tt |
|00005d00| 65 78 70 20 5c 72 6d 0a | 58 66 75 6e 63 74 69 6f |exp \rm.|Xfunctio|
|00005d10| 6e 2c 20 77 68 69 6c 65 | 20 43 20 67 65 6e 65 72 |n, while| C gener|
|00005d20| 61 74 65 73 20 63 61 6c | 6c 73 20 74 6f 20 61 20 |ates cal|ls to a |
|00005d30| 73 75 62 72 6f 75 74 69 | 6e 65 2e 20 20 41 6c 74 |subrouti|ne. Alt|
|00005d40| 68 6f 75 67 68 20 63 75 | 72 72 65 6e 74 20 43 0a |hough cu|rrent C.|
|00005d50| 58 63 6f 6d 70 69 6c 65 | 72 73 20 64 6f 6e 27 74 |Xcompile|rs don't|
|00005d60| 20 75 73 75 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 | usually| generat|
|00005d70| 65 20 69 6e 6c 69 6e 65 | 20 63 6f 64 65 2c 20 74 |e inline| code, t|
|00005d80| 68 65 20 41 4e 53 49 20 | 64 72 61 66 74 20 73 74 |he ANSI |draft st|
|00005d90| 61 6e 64 61 72 64 0a 58 | 70 72 6f 76 69 64 65 73 |andard.X|provides|
|00005da0| 20 61 20 6d 65 63 68 61 | 6e 69 73 6d 20 66 6f 72 | a mecha|nism for|
|00005db0| 20 64 65 66 69 6e 69 6e | 67 20 61 6e 64 20 69 6d | definin|g and im|
|00005dc0| 70 6c 65 6d 65 6e 74 69 | 6e 67 20 69 6e 6c 69 6e |plementi|ng inlin|
|00005dd0| 65 73 2c 20 61 6e 64 20 | 73 6f 6d 65 0a 58 63 6f |es, and |some.Xco|
|00005de0| 6d 70 69 6c 65 72 73 20 | 64 6f 20 73 75 70 70 6f |mpilers |do suppo|
|00005df0| 72 74 20 74 68 65 20 6d | 65 63 68 61 6e 69 73 6d |rt the m|echanism|
|00005e00| 2e 0a 58 0a 58 4f 6e 20 | 74 68 65 20 43 72 61 79 |..X.XOn |the Cray|
|00005e10| 20 32 2c 20 43 20 67 65 | 6e 65 72 61 74 65 73 20 | 2, C ge|nerates |
|00005e20| 73 68 6f 72 74 65 72 20 | 6c 65 73 73 20 63 6f 6e |shorter |less con|
|00005e30| 76 6f 6c 75 74 65 64 20 | 6c 6f 6f 70 73 20 61 6e |voluted |loops an|
|00005e40| 64 20 75 73 65 73 20 6d | 6f 72 65 0a 58 72 65 67 |d uses m|ore.Xreg|
|00005e50| 69 73 74 65 72 5c 66 6f | 6f 74 6e 6f 74 65 7b 41 |ister\fo|otnote{A|
|00005e60| 63 74 75 61 6c 6c 79 2c | 20 6c 6f 63 61 6c 20 6d |ctually,| local m|
|00005e70| 65 6d 6f 72 79 2c 20 77 | 68 69 63 68 20 43 20 74 |emory, w|hich C t|
|00005e80| 72 65 61 74 73 20 61 73 | 20 61 20 6c 61 72 67 65 |reats as| a large|
|00005e90| 0a 58 72 65 67 69 73 74 | 65 72 20 66 69 6c 65 2e |.Xregist|er file.|
|00005ea0| 7d 20 72 65 66 65 72 65 | 6e 63 65 73 20 74 68 61 |} refere|nces tha|
|00005eb0| 6e 20 46 6f 72 74 72 61 | 6e 2e 20 20 4f 76 65 72 |n Fortra|n. Over|
|00005ec0| 61 6c 6c 2c 20 74 68 69 | 73 20 61 70 70 65 61 72 |all, thi|s appear|
|00005ed0| 73 20 74 6f 0a 58 67 69 | 76 65 20 43 20 61 20 73 |s to.Xgi|ve C a s|
|00005ee0| 63 61 6c 61 72 20 70 65 | 72 66 6f 72 6d 61 6e 63 |calar pe|rformanc|
|00005ef0| 65 20 61 64 76 61 6e 74 | 61 67 65 20 6f 76 65 72 |e advant|age over|
|00005f00| 20 46 6f 72 74 72 61 6e | 2e 20 20 43 6f 6d 70 69 | Fortran|. Compi|
|00005f10| 6c 69 6e 67 20 74 68 65 | 0a 58 46 6f 72 74 72 61 |ling the|.XFortra|
|00005f20| 6e 20 6c 6f 6f 70 73 20 | 77 69 74 68 20 76 65 63 |n loops |with vec|
|00005f30| 74 6f 72 69 7a 61 74 69 | 6f 6e 20 64 69 73 61 62 |torizati|on disab|
|00005f40| 6c 65 64 20 73 68 6f 77 | 73 20 43 20 73 63 61 6c |led show|s C scal|
|00005f50| 61 72 20 70 65 72 66 6f | 72 6d 61 6e 63 65 0a 58 |ar perfo|rmance.X|
|00005f60| 74 6f 20 76 61 72 79 20 | 66 72 6f 6d 20 32 20 74 |to vary |from 2 t|
|00005f70| 6f 20 35 20 74 69 6d 65 | 73 20 66 61 73 74 65 72 |o 5 time|s faster|
|00005f80| 20 74 68 61 6e 20 46 6f | 72 74 72 61 6e 20 73 63 | than Fo|rtran sc|
|00005f90| 61 6c 61 72 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 |alar per|formance|
|00005fa0| 2e 0a 58 0a 58 5c 73 65 | 63 74 69 6f 6e 7b 43 6f |..X.X\se|ction{Co|
|00005fb0| 6e 76 65 78 20 50 65 72 | 66 6f 72 6d 61 6e 63 65 |nvex Per|formance|
|00005fc0| 7d 0a 58 0a 58 54 68 65 | 20 43 6f 6e 76 65 78 20 |}.X.XThe| Convex |
|00005fd0| 63 6f 6d 70 69 6c 65 72 | 73 20 70 72 6f 64 75 63 |compiler|s produc|
|00005fe0| 65 20 63 6f 6e 73 69 64 | 65 72 61 62 6c 65 20 64 |e consid|erable d|
|00005ff0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |ocumenta|tion of |
|00006000| 74 68 65 69 72 0a 58 61 | 63 74 69 6f 6e 73 2e 20 |their.Xa|ctions. |
|00006010| 20 46 69 67 75 72 65 7e | 33 20 73 68 6f 77 73 20 | Figure~|3 shows |
|00006020| 70 61 72 74 20 6f 66 20 | 74 68 65 20 76 65 63 74 |part of |the vect|
|00006030| 6f 72 69 7a 61 74 69 6f | 6e 20 73 75 6d 6d 61 72 |orizatio|n summar|
|00006040| 79 20 66 72 6f 6d 20 74 | 68 65 20 43 0a 58 63 6f |y from t|he C.Xco|
|00006050| 6d 70 69 6c 65 72 20 66 | 6f 72 20 74 68 65 20 66 |mpiler f|or the f|
|00006060| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ile cont|aining t|
|00006070| 68 65 20 6c 6f 6f 70 73 | 2e 20 20 54 68 65 20 43 |he loops|. The C|
|00006080| 6f 6e 76 65 78 20 63 6f | 6d 70 69 6c 65 72 0a 58 |onvex co|mpiler.X|
|00006090| 72 65 63 6f 67 6e 69 7a | 65 73 20 61 20 77 69 64 |recogniz|es a wid|
|000060a0| 65 20 72 61 6e 67 65 20 | 6f 66 20 6c 61 6e 67 75 |e range |of langu|
|000060b0| 61 67 65 20 63 6f 6e 73 | 74 72 75 63 74 73 2c 20 |age cons|tructs, |
|000060c0| 69 6e 63 6c 75 64 69 6e | 67 20 67 6f 74 6f 20 64 |includin|g goto d|
|000060d0| 72 69 76 65 6e 0a 58 6c | 6f 6f 70 73 20 61 73 20 |riven.Xl|oops as |
|000060e0| 70 6f 74 65 6e 74 69 61 | 6c 20 66 6f 72 20 76 65 |potentia|l for ve|
|000060f0| 63 74 6f 72 69 7a 61 74 | 69 6f 6e 2e 20 20 49 74 |ctorizat|ion. It|
|00006100| 20 69 73 20 61 62 6c 65 | 20 74 6f 20 72 65 61 6c | is able| to real|
|00006110| 69 7a 65 20 69 6e 20 73 | 6f 6d 65 0a 58 63 61 73 |ize in s|ome.Xcas|
|00006120| 65 73 20 74 68 61 74 20 | 69 74 20 73 68 6f 75 6c |es that |it shoul|
|00006130| 64 20 6e 6f 74 20 76 65 | 63 74 6f 72 69 7a 65 20 |d not ve|ctorize |
|00006140| 61 20 6c 6f 6f 70 20 61 | 6e 64 20 66 72 65 71 75 |a loop a|nd frequ|
|00006150| 65 6e 74 6c 79 20 61 62 | 6c 65 20 74 6f 20 67 69 |ently ab|le to gi|
|00006160| 76 65 0a 58 67 6f 6f 64 | 20 69 6e 66 6f 72 6d 61 |ve.Xgood| informa|
|00006170| 74 69 6f 6e 20 61 62 6f | 75 74 20 77 68 79 20 61 |tion abo|ut why a|
|00006180| 20 6c 6f 6f 70 20 63 61 | 6e 6e 6f 74 20 62 65 20 | loop ca|nnot be |
|00006190| 76 65 63 74 6f 72 69 7a | 65 64 2e 0a 58 0a 58 5c |vectoriz|ed..X.X\|
|000061a0| 62 65 67 69 6e 7b 66 69 | 67 75 72 65 7d 5b 68 74 |begin{fi|gure}[ht|
|000061b0| 5d 0a 58 5c 73 6d 61 6c | 6c 0a 58 5c 63 61 70 74 |].X\smal|l.X\capt|
|000061c0| 69 6f 6e 7b 56 65 63 74 | 6f 72 69 7a 61 74 69 6f |ion{Vect|orizatio|
|000061d0| 6e 20 75 73 69 6e 67 20 | 43 6f 6e 76 65 78 20 43 |n using |Convex C|
|000061e0| 7d 0a 58 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |}.X\begi|n{verbat|
|000061f0| 69 6d 7d 0a 58 0a 58 53 | 6f 75 72 63 65 20 49 74 |im}.X.XS|ource It|
|00006200| 65 72 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |er. | |
|00006210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006220| 20 20 20 20 56 65 63 74 | 6f 72 2d 20 20 20 20 20 | Vect|or- |
|00006230| 20 20 0a 58 4c 69 6e 65 | 20 20 20 56 61 72 2e 20 | .XLine| Var. |
|00006240| 20 20 20 20 20 20 20 20 | 53 74 61 72 74 20 20 20 | |Start |
|00006250| 20 20 53 74 6f 70 20 20 | 20 20 20 53 74 65 70 20 | Stop | Step |
|00006260| 20 69 7a 61 74 69 6f 6e | 20 20 20 20 20 52 65 61 | ization| Rea|
|00006270| 73 6f 6e 0a 58 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |son.X---|--------|
|00006280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062c0| 0a 58 20 20 20 34 32 20 | 20 6b 20 20 20 20 20 20 |.X 42 | k |
|000062d0| 20 20 20 20 20 2a 45 58 | 50 52 2a 20 20 20 20 69 | *EX|PR* i|
|000062e0| 70 6e 74 70 20 20 20 20 | 20 20 20 20 32 20 20 4e |pntp | 2 N|
|000062f0| 6f 6e 65 20 20 4e 6f 74 | 20 65 6e 6f 75 67 68 20 |one Not| enough |
|00006300| 76 65 63 74 6f 72 20 63 | 6f 64 65 0a 58 20 20 20 |vector c|ode.X |
|00006310| 35 33 20 20 6b 20 20 20 | 20 20 20 20 20 20 20 20 |53 k | |
|00006320| 2a 45 58 50 52 2a 20 20 | 20 20 20 20 20 20 6e 20 |*EXPR* | n |
|00006330| 20 20 20 20 20 20 20 31 | 20 20 50 41 52 54 20 20 | 1| PART |
|00006340| 56 65 63 74 6f 72 20 28 | 35 30 25 29 0a 58 20 20 |Vector (|50%).X |
|00006350| 20 39 39 20 20 6b 79 20 | 20 20 20 20 20 20 20 20 | 99 ky | |
|00006360| 20 2a 45 58 50 52 2a 20 | 20 20 20 20 20 20 20 6e | *EXPR* | n|
|00006370| 20 20 20 20 20 20 20 20 | 31 20 20 46 55 4c 4c 20 | |1 FULL |
|00006380| 20 56 65 63 74 6f 72 0a | 58 20 20 31 34 39 20 20 | Vector.|X 149 |
|00006390| 6c 20 20 20 20 20 20 20 | 20 20 20 20 2a 45 58 50 |l | *EXP|
|000063a0| 52 2a 20 20 20 20 20 20 | 20 6c 70 20 20 20 20 20 |R* | lp |
|000063b0| 20 20 20 31 20 20 4e 6f | 6e 65 20 20 55 6e 61 62 | 1 No|ne Unab|
|000063c0| 6c 65 20 74 6f 20 64 69 | 73 74 72 69 62 75 74 65 |le to di|stribute|
|000063d0| 0a 58 20 20 31 36 37 20 | 20 69 70 20 20 20 20 20 |.X 167 | ip |
|000063e0| 20 20 20 20 20 2a 45 58 | 50 52 2a 20 20 20 20 20 | *EX|PR* |
|000063f0| 20 20 20 6e 20 20 20 20 | 20 20 20 20 31 20 20 50 | n | 1 P|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.