Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site wateng.UUCP Path: utzoo!watmath!wateng!ksbszabo From: ksbszabo@wateng.UUCP (Kevin Szabo) Newsgroups: net.lang.c Subject: Re: SIZEOF Message-ID: <1960@wateng.UUCP> Date: Sat, 2-Feb-85 22:22:04 EST Article-I.D.: wateng.1960 Posted: Sat Feb 2 22:22:04 1985 Date-Received: Sun, 3-Feb-85 09:39:09 EST References: <347@ecr.UUCP> <393@rlgvax.UUCP> Reply-To: ksbszabo@wateng.UUCP (Kevin Szabo) Organization: VLSI Group, U of Waterloo Lines: 14 Summary: As Guy says, sizeof( int ) != sizeof( int *). However, a lot of code depends on the two sizes being the same (unfortunately). We have a 68k beast with a Micrsoft port of systemIII. On this machine an Int is 32 bits. Isn't an int supposed to be the natural word size for a machine? Is 32 bits a natural size for a 68000? I guess it will be for the 68k which have 32 bit busses, but what about the machine with the 16 bit data bus? I have a feeling that the integer size was picked more for porting convenience than anything else, of course I have been wrong many times before. -- Kevin Szabo watmath!wateng!ksbszabo (U of Waterloo VLSI Group, Waterloo Ont.)