Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 alpha 4/15/85; site elsie.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: net.unix-wizards
Subject: shorts vs. ints on a VAX 11/750
Message-ID: <5161@elsie.UUCP>
Date: Tue, 16-Jul-85 13:13:25 EDT
Article-I.D.: elsie.5161
Posted: Tue Jul 16 13:13:25 1985
Date-Received: Thu, 18-Jul-85 06:07:27 EDT
Organization: NIH-LEC, Bethesda, MD
Lines: 15
Keywords: vi short int

I noted today that variables in "ex_vis.h" were declared to be type "short"
rather than type "int."  Now my own experience with our VAX 11/750 has been
that it pays to declare (non-array) variables to be "int" rather than "short";
this avoids all sorts of "cvtxx"s at run time, and seems to more than compensate
for the extra memory fetches involved in using "int"s rather than "short"s.
And yet I've got to believe that there was a good reason for using shorts in vi.

If you have insights in to using shorts versus using ints on the VAX 11/750
in general, or shorts versus ints in vi in particular, I'd appreciate hearing
from you.
--
UNIX is an AT&T Bell Laboratories trademark.
--
	UUCP: ..decvax!seismo!elsie!ado    ARPA: elsie!ado@seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks