Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site petrus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!hammond From: hammond@petrus.UUCP (Rich A. Hammond) Newsgroups: net.lang.c Subject: Re: Code Generation (register byte, short...) Message-ID: <703@petrus.UUCP> Date: Tue, 26-Nov-85 07:24:34 EST Article-I.D.: petrus.703 Posted: Tue Nov 26 07:24:34 1985 Date-Received: Wed, 27-Nov-85 05:48:27 EST References: <29@brl-tgr.ARPA> Organization: Bell Communications Research, Inc Lines: 15 > [on a 68000 where short*short is a single instruction, but int*int requires a > procedure call ] > > Thats what you get for using a machine that calims to be 32-bit when it really > is 16-bit. Dont know how to help you with your gripe but "int" exists to > represent the natural size of the machine..... in my interpretation that > would be the size that works best, fastest etc. The problem is really the brain damage among UNIX hackers that assumes sizeof(int) == sizeof (char *). This is so painful to fix (for quick ports) that although the 68000's int should be 16 bits (the size that works best, fastest, ...) it is often made 32 bits. While this avoids the pain for the porter, it does lead to problems for the end user (i.e. using short vs int). Rich Hammond (ihnp4|allegra|decvax|ucbvax) !bellcore!hammond