Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site amdcad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!amdcad!jimb From: jimb@amdcad.UUCP (Jim Budler) Newsgroups: net.micro.mac Subject: Re: Consulair Mac C vs. Megamax C Message-ID: <895@amdcad.UUCP> Date: Sat, 30-Mar-85 16:39:10 EST Article-I.D.: amdcad.895 Posted: Sat Mar 30 16:39:10 1985 Date-Received: Sun, 31-Mar-85 04:36:05 EST References: <7606@rochester.UUCP> <678@druxx.UUCP> Reply-To: jimb@amdcad.UUCP (Jim Budler) Organization: AMDCAD, Sunnyvale, CA Lines: 27 Summary: In article <678@druxx.UUCP> lat@druxx.UUCP (TepperL) writes: >I had an opportunity to look at the Megamax C manual. As I understood one >of the early chapters, sizeof(short) == 1. Is this really the case? >... >In particular, this would be a hassle if you wanted to port some programs >written for the UNIX C compilers for the PDP-11, VAX and other machines. >... I just thought I would clarify Consulair Mac-C's place in this discussion and mention that I do know that Megamax sizeof(int) is 2. PDP-11 VAX IBM-370 Mac-C(default) Mac-C(option) sizeof(short) 2 2 2 2 1 sizeof(int) 2 4 4 4 2 sizeof(long) 4 4 4 4 4 Bill Duvall( Consulair ) states in the manual that the default of 16 bit shorts and 32 bit longs is for portability and that the option of 8 bit shorts and 16 bit int's is optimum for the architecture of the 68000 and generates faster, more compact code. -- Jim Budler Advanced Micro Devices, Inc. (408) 982-6547 UUCPnet: {ucbvax,decwrl,ihnp4,allegra,intelca}!amd!jimb Compuserve: 72415,1200 The Source: STW265