Xref: utzoo comp.lang.c++:13262 comp.lang.c:39030 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: 64 bit architectures and C/C++ Message-ID: <312@nazgul.UUCP> Date: 2 May 91 17:07:37 GMT References: <168@shasta.Stanford.EDU> <12563@dog.ee.lbl.gov> Reply-To: bright@nazgul.UUCP (Walter Bright) Followup-To: comp.lang.c++ Organization: Zortech, Seattle Lines: 25 In article <12563@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: /In article <168@shasta.Stanford.EDU> shap@shasta.Stanford.EDU (shap) writes: />How bad is it for sizeof(int) != sizeof(long). /It does cause problems---there is always software that makes invalid /assumptions---but typically long-vs-int problems, while rampant, are /also easily fixed. The most aggravating problem we have is it seems we (Zortech) are the only compiler for which: char signed char unsigned char are all distinct types! For example, char *p; signed char *ps; unsigned char *pu; p = pu; /* syntax error */ p = ps; /* syntax error */ It seems we are the only compiler that flags these as errors. A related example is: int i; short *ps; *ps = &i; /* syntax error, for 16 bit compilers too */ I think a lot of people are in for a surprise when they port to 32 bit compilers... :-)