Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site druil.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!drutx!druil!lat
From: lat@druil.UUCP (TepperL)
Newsgroups: net.micro.68k,net.arch
Subject: Infrequency of integer multiplies
Message-ID: <1580@druil.UUCP>
Date: Tue, 25-Jun-85 11:54:39 EDT
Article-I.D.: druil.1580
Posted: Tue Jun 25 11:54:39 1985
Date-Received: Wed, 26-Jun-85 06:49:15 EDT
References: <1109@peora.UUCP> <5716@utzoo.UUCP> <659@lll-crg.ARPA>
Organization: AT&T Information Systems Laboratories, Denver
Lines: 18
Xref: watmath net.micro.68k:964 net.arch:1478

It has been pointed out that multi-dimensional arrays will cause
integer multiplies to be implicitly performed, but that most
programs do not use multi-dimensional arrays, so that it
would be OK to not use them.

But what about arrays of structures?  These too will cause implicit
multiplies when referenced as below:

	blotto[i].xyzzy = 21;

I know, I know, in C you should assign a structure pointer to
&blotto[i] and all that, but not everyone writes code that way,
and shouldn't have to either.

Significant or not, you will find arrays like these a lot more
often.
-- 
Larry Tepper	    {ihnp4 | allegra}!druil!lat		+1-303-538-1759