TweetFollow Us on Twitter

RISC on Mac II
Volume Number:6
Issue Number:9
Column Tag:Programmer's Forum

The Mac II On Steroids

By Paul Zarchan, Cambridge, MA

The Mainframe Potential Of The Mac

Introduction and Background

The 68000-based Macintosh was introduced in 1984 and it’s processing power remained virtually unchanged for approximately 3 years. A dramatic speed increase came with the introduction of the 68020-based Mac II in 1987. Ordinary applications such as word processing ran 4 times faster on the Mac II because of it’s higher clock rate (16 Mhz vs 8 Mhz) and increased number of bits (32 bits vs 16 bits) while numerically intensive programs ran 10 times faster because of the addition of the 68881 math coprocessor. In fact, for number crunching programs written in FORTRAN, a $5,000 Mac II ran nearly at the speed of a VAX 11/780 - a minicomputer costing $250,000. 1

Since 1987 there has not been a dramatic improvement in Macintosh running speeds. The introduction of the 68030-based Macintosh only slightly increased the speed of the 68020-based Mac II whereas higher clock rates have gradually accelerated speeds of the original Mac II by up to a factor of 3. Although a factor of 3 is not insignificant, it is not commensurate with the expectations of the microcomputer user community nor is it adequate for many mainframe-based scientific and engineering applications.

What’s New?

Much has been written about “the wall” facing all microcomputers. Physics appears to place an upper limit of 100 to 150 Mhz on achievable clock rates with silicon. Does that mean the best we can see in the future for the Mac is a mere threefold increase in speed? Fortunately the answer is no! For scientific and engineering applications written in FORTRAN, the Mac II can be made up to 30 times faster - not in the near future but right now! In other words, the Mac II can be given the number crunching capability of a mainframe.

A special board, based on Motorola’s new 88000 RISC architecture is available from Tektronix, and a 88000 FORTRAN compiler is available from Absoft giving the Macintosh II a mainframe speed capability. The board, known as the RP88 Coprocessor Board, can be installed in approximately 2 minutes into a NuBus slot and the FORTRAN compiler works in the MPW environment. Calculation intensive programs are written and compiled in the 68020 Macintosh environment but executed (by double-clicking an icon on the screen) on the 88000. Data generated by the 88000-based program can be viewed on the screen and/or data can be written to a file for viewing later. More advanced users can actually have portions of a program such as the Macintosh interface running on the 68020 and sophisticated algorithms running on the 88000.

Although RISC boards have been around for some time on a variety of hardware platforms, the Tektronix contribution is different in two important respects. First the extraordinary power of RISC can now easily be exploited from a high order language by engineers and scientists for “plain vanilla” code. C and FORTRAN compilers for the 88000 can not only be ordered but they are actually available. Secondly, we still have all the advantages that the Macintosh has to offer. In fact, when operating under MultiFinder it is possible, without additional programming, to have an 88000-based program running simultaneously with a 68020-based application, without loss of speed in either application.

What Is RISC?2,3

RISC is an acronym for “reduced instruction set computer.” It is a style of computer architecture that advocates shifting complexity from hardware and program run time to software and program compile time. At the heart of RISC are two important concepts:

• Most instructions are effectively executed in a single machine cycle

• Only those features that measurably affect performance are implemented in hardware

Apparently the first RISC machine was the IBM/801 minicomputer built in 1979. This computer, which was not a commercial product, had very fast memory and fixed format instructions that could execute in a single clock cycle. The IBM RT PC workstation was a commercial product introduced in 1986 based on the 801 technology. However the original RT was a failure commercially. One of the possible reasons for it’s lack of success was the absence of high level language support.

Today one only has to read the ads of scientific/engineering magazines to see that there are many RISC products in the microcomputer/workstation world. In this article we shall not attempt to compare one product versus another but merely show that the RISC product available for the Mac II yields an astounding leap in performance.

How Fast Is The 88000-Based Mac?

The whetstone benchmark, devised in England by H. Curnow and B. Wichmann in the Feb. 1976 issue of Computer Journal,4 is an attempt to cover a typical mix of all floating-point operations. This benchmark contains linear arrays, and addition, subtraction, multiplication, division, and transcendental operations. Many computer manufacturers have rated their machines in terms of thousands of whetstones per second or kwhet/s. Higher whetstone ratings mean more powerful machines. Table 1, based on the results of Reference 5, presents single precision and double precision whetstone ratings for several computing platforms including the 88000-based Mac II. In addition, the cost of the host computer is included in the Table to provide a sobering perspective. Here we can consider cost to be the platform purchase price only. This neglects the cost of the many individuals required to operate and maintain the larger machines. In fact, the cost of this small army of technicians usually far exceeds the machines purchase price!

Table 1 Whetstone Ratings For A Variety Of Computers

We can see from Table 1 that although the original Mac II is very fast, the addition of the 88000 RISC board speeds up the Mac II by a factor of 23 for single precision whetstones and a factor of 13 for double precision whetstones when the default compiler optimization is used. Much higher whetstone ratings for the 88000-based Mac can be achieved by using additional compiler optimization options. However these higher whetstone ratings (approximately a factor of 2 higher) are not indicative of general performance gains in a variety of applications.

Generally higher cost computers yield faster performance. However, Table 1 shows that cost is not always commensurate with the performance. For example, a VAX 11/780 is only 1.5 times as fast as a Macintosh II (double precision whetstones) and yet is 50 times more expensive. An IBM/3090 is 33 times faster than a Macintosh II and is 1000 times more expensive.

A 20 Mhz 88000 Tektronix board with 8 Megabytes of memory costs $12,000 (less expensive versions are available too) and the Absoft 88000 FORTRAN compiler costs $2000. Therefore the total cost of an 88000-based Mac is approximately $19000 ($12000+$2000+$5000). The Table indicates that the 88000-based Mac runs 2.4 times slower than the IBM 3090 super computer at 260 times less cost when the default compiler optimization is used. Although the 88000-based Mac is nearly 4 times more expensive than a conventional Mac II it is from 13 to 23 times more powerful!

If we normalize the computer performance information of Table 1 as measured by whetstones per second to the computer purchase price, we can generate “bang for the buck” information as was done in Ref. 5. More bang for the buck means that the computer yields a higher whetstone rating for less cost. Figure 1 presents this cost effectiveness information for single and double precision whetstones. The figure clearly shows that the 88000-based Mac (when the default compiler optimization is used) is more than two orders of magnitude cost effective than super mini or mainframe computers and from 3 to 6 times more cost effective than a conventional Mac II. Most importantly, mainframe power is now available in a desktop microcomputer at very reasonable cost!

Figure 1 RISC Significantly Improves Cost Effectiveness of Mac II

How Fast Is The 88000-Based Mac On Actual Programs?

Whetstone benchmarks are meaningless unless they reflect how the computer will perform on actual programs. If a computer has a whetstone rating 20 times higher than that of another computing platform, the expectation is that normal (as written by non-computer professionals) FORTRAN programs will run 20 times faster on the more powerful computer. In the case of the 88000-based Mac we shall see that the whetstone rating is actually an underestimate of how powerful this enhanced microcomputer actually is.

A monte carlo program, whose source code is presented in Listing 1, was taken from Reference 6. This program simulates a missile-target engagement and involves the numerical integration of differential equations and a random input error source. Fifty run monte carlo set sample sizes are required to accumulate accurate statistics on performance as a function of flight time. Data from each monte carlo set (corresponding to a particular flight time) is post-processed and the mean and standard deviation of each set is computed and written to a file. A glance at Listing 1 also shows how uniformly distributed random numbers are generated and how computer running time is calculated with the Absoft 88000 FORTRAN compiler

__________________________________________________________
 DIMENSION Z(1000)
 INTEGER RUN
 INTEGER*4 m(4),random
 CALL times(m)
 ntim=m(1)
 OPEN(1,STATUS=’NEW’,FILE=’DATFIL’)
 VC=4000.
 XNT=96.6
 VM=3000.
 XNP=3.
 TAU=1.
 RUN=50
 106  CONTINUE
 DO 60 TF=1,10
 Z1=0.
 DO 20 I=1,RUN
 K=random()
 SUM=K/2.1475e9
 TSTART=TF*SUM
 K1=random()
 PZ=K1/2.1475e9
 PZ=PZ-.5
 IF(PZ.GT.0.)THEN
 COEF=1.
 ELSE
 COEF=-1.
 ENDIF
 Y=0.
 YD=0.
 T=0.
 H=.01
 S=0.
 XNC=0.
 XNL=0.
 10IF(T.GT.(TF-.0001))GOTO 999
 IF(T.LT.TSTART)THEN
 XNT=0.
 ELSE
 XNT=COEF*96.6
 ENDIF
 YOLD=Y
 YDOLD=YD
 XNLOLD=XNL
 STEP=1
 GOTO 200
 66STEP=2
 Y=Y+H*YD
 YD=YD+H*YDD
 XNL=XNL+H*XNLD
 T=T+H
 GOTO 200
 55CONTINUE
 Y=.5*(YOLD+Y+H*YD)
 YD=.5*(YDOLD+YD+H*YDD)
 XNL=.5*(XNLOLD+XNL+H*XNLD)
 S=S+H
 GOTO 10
 200  CONTINUE
 TGO=TF-T+.00001
 RTM=VC*TGO
 XLAMD=(RTM*YD+Y*VC)/(RTM**2)
 XNC=XNP*VC*XLAMD
 XNLD=(XNC-XNL)/TAU
 YDD=XNT-XNL
 IF(STEP-1)66,66,55
 999  CONTINUE
 Z(I)=Y
 Z1=Z(I)+Z1
 XMEAN=Z1/I
 20CONTINUE
 SIGMA=0.
 Z1=0.
 DO 50 I=1,RUN
 Z1=(Z(I)-XMEAN)**2+Z1
 IF(I.EQ.1)THEN
 SIGMA=0.
 ELSE
 SIGMA=SQRT(Z1/(I-1))
 ENDIF
 50CONTINUE
 WRITE(9,*)TF,SIGMA,XMEAN
 WRITE(1,*)TF,’,’,SIGMA,’,’,XMEAN
 60CONTINUE
 CLOSE(1)
 CALL times(m)
 ztim=(m(1)-ntim)/60.
 WRITE(9,*)ztim
 PAUSE
 END
_____________________________________________________________

Listing 1 Monte Carlo Program FORTRAN Source Code

Table 2 compares the compile and running time using Absoft Version 2.3 FORTRAN for the Mac II and Absoft 88000 FORTRAN for the 88000-based Mac (using the default compiler optimization). In this table compile actually means compile, assemble and link. In other words it is the time the user must wait after making a source code change to get an executable program. We can see that for this example the 88000-based Mac run time was 26 times faster than the Mac II. However the compile times for the 88000 compiler are much higher. Apparently the price paid for dramatic increases in run time speed using RISC is a significant increase for the source code to compile.

Table 2 - RISC Yields Faster Run Times At Expense of Longer Compile Times

In general I have found that my applications, using single precision arithmetic, run from 20 to 30 times faster with the RISC board while my double precision applications run from 10 to 20 times faster. The major annoyance with the 88000-based Mac is in the much slower compile times with the 88000 FORTRAN (I was spoiled by Absoft’s very fast compiler for the Mac II). Applications which consist of a few hundred lines of code take from 1 min to 4 min to generate executable code whereas applications of more than 1000 lines take from 5 min to 15 min to compile, assemble and link. Making separate files for each program subroutine seems to speed up compilation on subsequent recompiles. However, the method that seems to work best for me is to develop the program under 68020 Absoft FORTRAN Version 2.3 and then to recompile under Absoft 88000 FORTRAN.

Is It Necessary To Learn MPW?

Although the 88000 board is easy to install and the ensuing performance gains breathtaking, the documentation leaves something to be desired. The initial documentation release had no FORTRAN examples and did not even tell you how to compile and execute a simple program. Some of the information provided was even scary. For example, the instructions for installing FORTRAN are: “The files listed above have been given to you on a tar formatted tape...” After searching frantically for the tape and drive I decided to call Textronic for help. Fortunately they were pleasant and very helpful. In case future documentation releases are not more explicit, here is a step-by-step procedure for compiling and executing a program for the 88000.

The 88000 FORTRAN compiler runs in the MPW environment. After the souse code is written using the MPW editor and named program.f (in this example whet.f), one pulls down the “Build” menu and clicks on “Create RP88 ...” as shown in Fig. 2.

Figure 2 - Step 1 In Using The 88000 FORTRAN Compiler

Next the user types in the name of the program output (i.e. double clickable icon) and clicks on the “files” button as shown in Fig. 3.

Figure 3 - Step 2 In Using The 88000 FORTRAN Compiler

A list of files will appear as shown in Fig. 4. The user double-clicks on the files of interest. After all the files are selected, the user clicks on done.

Figure 4 - Step 3 In Using The 88000 FORTRAN Compiler

In step 4 the user clicks on the “CreateMake88” button.

Figure 5 - Step 4 In Using The 88000 FORTRAN Compiler

Finally the user pulls down the “Build” menu for the last time and clicks on “Build...”

Figure 6 - Step 5 In Using The 88000 FORTRAN Compiler

A dialog box comes up and the user types in the program name (if it does not already appear) and then clicks on “OK”.

Figure 7 - Step 6 In Using The 88000 FORTRAN Compiler

If there is a compilation error, the MPW worksheet will indicate the error and line number. Selecting the line and hitting the “enter” key will automatically take you to the offending line in the source code. If there are no errors, the MPW worksheet eventually indicates that the whole process is completed. At this time the user types in host88, a space and then the name of the program (in this case “host88 whet”) and hits the “enter” key. This command automatically launches the 88000-based program.

General Comments

I have used the RP88 and FORTRAN 88000 compiler for approximately 3 months. The product allows me to tackle problems which were previously beyond my reach. I would highly recommend this product to any scientist or engineer who must do time consuming number crunching problems or to any individual currently wasting money on excessive mainframe charges. When I first told a colleague about this product he actually thought nitrogen bottles and super conductivity were involved in achieving mainframe speeds with a microcomputer.

At work, skeptics became convinced of the utility of this product when we ported a mainframe covariance analysis program, using double precision arithmetic. The program took 6 hrs to run on a Mac II. Only one line of code had to be modified to work with the 88000 FORTRAN compiler. In the first attempt, the program ran in 20 min with the 88000. We saw that the 88000 bottle neck was excessive writing to the screen (this was originally done on the 68020 version of the code just to let the user know that the program was alive). In writing to the screen, the 88000 must communicate with the 68020 causing the 88000 to spend a great deal of time waiting. By writing the data to a file (for viewing later) and eliminating writing to the screen when using the 88000 compiler we cut the run time down to 10 min. In addition, with MultiFinder we can make batch runs in the background while using the 68020 portion of the Mac for other productive work.

Current pricing information on the Tektronix RP88 can be obtained from Tektronix, PO Box 500, MS 50-662, Beaverton, Oregon 97077 (800-TEK-WIDE ext. 8800). Information on the Absoft 88000 FORTRAN compiler can be obtained from Absoft, 2781 Bond Street, Rochester Hills, MI 483089 (313-853-0095).

References

1 Zarchan, P., “New Mac Workstation Potential,” MacTutor, Vol. 3, March 1987, pp 15-21.

2 Hennessy, J., “VLSI RISC Processors,” VLSI Systems Design, Oct. 1985, pp 22-32.

3 Robinson, P., “How Much of a RISC,” BYTE, Vol. 12, April 1987, pp. 143-150.

4 Curnow, H. J., and Wichmann, B. A., “Synthetic Benchmark,” Computer Journal, Vol. 19, Feb. 1976, pp 43-49.

5 Zarchan, P., “Benchmarks Re-Visited,” MacTutor, Vol. 3, Sept. 1987, pp. 78-80.

6 Zarchan P., Tactical and Strategic Missile Guidance, Vol. 124, Progress in Astronautics and Aeronautics, AIAA, Washington, DC 1990.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.