Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: futures!scott@uunet.uu.net (Scott Boyd) Newsgroups: comp.sys.sun Subject: Re: Sun386i, cc and calctool Message-ID: <110@futures.UUCP> Date: 4 Mar 89 01:24:00 GMT References: <8902151716.AA05085@megaron.arizona.edu> Sender: usenet@rice.edu Organization: Commodity Futures, Inc. Woodside, CA Lines: 21 Approved: Sun-Spots@rice.edu Original-Date: 21 Feb 89 22:33:10 GMT X-Sun-Spots-Digest: Volume 7, Issue 180, message 3 of 12 francis%catuc.UUCP@arizona.edu writes: >In a followup to the article I posted trying to find out why I couldn't >compile the cacltool program written by Chuck Musciano on my 386i, I >narrowed the problem to the C Compiler.... Yup. The C compiler goes bye-bye on any unsigned long or int cast that references either an array or a pointer. Given legitimate definitions any of the following will hang the C compiler on the 386i. l = (unsigned long) ptr->value; i = (unsigned int) ptr->value; l = (unsigned long) array[index]; i = (unsigned int) array[index]; This is with the 4.0.1 release of SunOS on a 386i/250. -- Scott Boyd Commodity Futures, Inc. uunet!futures!scott P.O. Box 620484 Woodside, CA 94062