Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site basser.SUN Path: utzoo!linus!vaxine!wjh12!genrad!decvax!mulga!munnari!basser!kvm From: kvm@basser.SUN (Karlos Mauvtaque) Newsgroups: net.unix-wizards Subject: Re: long vs. int vs. short guidelines (especially for wizards!!) Message-ID: <261@basser.SUN> Date: Mon, 9-Apr-84 00:21:45 EST Article-I.D.: basser.261 Posted: Mon Apr 9 00:21:45 1984 Date-Received: Wed, 11-Apr-84 01:52:43 EST References: <444@sri-arpa.UUCP>, <430@burl.UUCP> Organization: Dept of C.S., University of Sydney Lines: 21 You say don't use "int", ever. Nonsense. Here are my rules: Use "long" if you really mean "long", (i.e. at least 32 bits, argue if you like that "long" does not have to be at least 32 bits but any implementation with less will be very lonely, nothing will work). Use "short" only in data structures where you are concerned about how much space you are using. In other cases "int" is always better because it is at least as big and "the natural size suggested by the host machine architecture", i.e. faster. Try changing your: register short i; loop variables to register int i; and you may not need that n-th VAX.