Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!mcsun!hp4nl!star.cs.vu.nl!mjh From: mjh@cs.vu.nl (Maarten J Huisjes) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: xx vs. uu Message-ID: <5634@star.cs.vu.nl> Date: 21 Feb 90 16:09:12 GMT References: <1513@krafla.rhi.hi.is> <90052.022126CMH117@psuvm.psu.edu> Sender: news@cs.vu.nl Reply-To: mjh@cs.vu.nl (Maarten J Huisjes) Organization: VU Informatika, Amsterdam, the Netherlands Lines: 37 In article <90052.022126CMH117@psuvm.psu.edu>, CMH117@psuvm.psu.edu (Charles Hannum) writes: > > In article <507@sixhub.UUCP>, davidsen@sixhub.UUCP (Wm E. Davidsen Jr) says: > > > >In article <2973@draken.nada.kth.se> perand@nada.kth.se (Per Andersson) writes: [stuff deleted] > > There is a version of lharc which runs on SysV, but it fails if ints > >are not 16 bits. If you change all the int statements to short it runs > >on more machines. Unfortunately that doesn't help the user with a full > >size 64 bit word, some there's still a problem. > > K&R2 [ANSI-standard] C specifies: > > "int" (neither far nor short) implicitly means "short int" > > "short int"s are 16 bits > > Your compiler is broken. Crap, Absolutly FALSE !!!!!!!!!!!!!!!!!! ANSI-standard C specifies: short <= int <= long Which leaves the 'int' compiler (machine) dependent. Int is always the natural size of a word of the machine. e.g Machine Wordsize Intsize 8086 16 16 VAX 32 32 SUN 32 32 -- Maarten Huisjes. mjh@cs.vu.nl (..!uunet!mcsun!botter!mjh)