Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.16 $; site ima.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ima!johnl From: johnl@ima.UUCP Newsgroups: net.lang.c Subject: Re: fast code and no morals Message-ID: <136700002@ima.UUCP> Date: Tue, 28-Jan-86 18:04:00 EST Article-I.D.: ima.136700002 Posted: Tue Jan 28 18:04:00 1986 Date-Received: Thu, 30-Jan-86 05:50:29 EST References: <842@megaron.UUCP> Lines: 15 Nf-ID: #R:megaron:-84200:ima:136700002:000:789 Nf-From: ima!johnl Jan 28 18:04:00 1986 The loop unwound into switch hack has been around for a long time. We used it at Yale in 1977 for a terminal emulator running on an 11/05 which was a front end to an 11/45 running the 6th edition Unix, recently upgraded from 5th edition. The terminal emulator spent too much of its time doing scrolling (including region scrolling) so we unwound the loops, using the switch hack to deal with the edges of regions. Worked great then, works great now. That particular time, it was concocted by John Mostenan and Bob Tuttle. It's evidently been rediscovered a zillion times since. John Levine, ima!johnl PS: Writing our 11/05 C code so that the 11/45 C compiler wouldn't emit any instructions that the 11/05 couldn't execute, like multiply and divide, was the hard part.