Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site ccvaxa Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!preece From: preece@ccvaxa.UUCP Newsgroups: net.lang.c Subject: Re: Uses of Short Message-ID: <2600014@ccvaxa> Date: Fri, 13-Sep-85 11:04:00 EDT Article-I.D.: ccvaxa.2600014 Posted: Fri Sep 13 11:04:00 1985 Date-Received: Sat, 14-Sep-85 17:33:46 EDT References: <2777@sun.uucp> Lines: 18 Nf-ID: #R:sun.uucp:-277700:ccvaxa:2600014:000:783 Nf-From: ccvaxa.UUCP!preece Sep 13 10:04:00 1985 > > `What are the stimuli that would provoke Guy to respond by typing `short' > > at the C compiler?' > How about an array of 10000 counters, each one of which won't ever get > over 10000. Perfect opportunity for "short" on any machine, especially > machines like mine which has 32-bit "int"s. /* Written 7:40 pm Sep > 10, 1985 by guy@sun.uucp in ccvaxa:net.lang.c */ ---------- Of course, on some machines halfword arithmetic is slower than fullword arithmetic and on others the opposite is true, so if speed is a major consideration you may need to tailor your declaration to the specific machine you're working on. Maybe "int" should by convention be the whatever style integer is the fastest to work with... -- scott preece gould/csd - urbana ihnp4!uiucdcs!ccvaxa!preece