Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.sys.ibm.pc Subject: Re: 32 bit C Comps and Long Message-ID: <1315@crdos1.crd.ge.COM> Date: 23 Oct 89 12:20:02 GMT References: <1224@utkcs2.cs.utk.edu> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center Lines: 25 In article <1224@utkcs2.cs.utk.edu>, wozniak@utkux1.utk.edu (Bryon Lape) writes: | | Excuse me for being a little sarcastic here, but is not the | following true? | | For a 32bit integer (as someone writes about) use | | long int x; The poster didn't ask about 32 bit longs, he asked about 32 bit ints. There is a book called _The C Programming Language_ which will explain the diference. Intel has several manuals which explain the diference in the way 32 bit ints work, as opposed to longs on a 286 compiler which are implemented as two 16 bit ints and about 300% overhead. To sum it up in beginners language: 286 compilers don't use 32 bit arithmetic for anything, they fake it with 16 bit arithmetic and run a lot slower. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon