Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: francis%catuc.UUCP@arizona.edu Newsgroups: comp.sys.sun Subject: Sun386i, cc and calctool Message-ID: <8902151716.AA05085@megaron.arizona.edu> Date: 19 Feb 89 02:07:41 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 42 Approved: Sun-Spots@rice.edu Original-Date: Wed, 15 Feb 89 10:16:12 MST X-Sun-Spots-Digest: Volume 7, Issue 160, message 8 of 13 This is the third time I have submitted this article to sun-spots: the requests must be getting lost! [[ No, they were being sent to the wrong address! If you want to mail a submission to the digest, please send it to "sun-spots@rice.edu". Thank you. --wnl ]] 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. For those of you interested, try to compile the code fragment (isolated by Peter Collins): main() { int i; double v_stack[100]; int v_top; i = ~ (unsigned int) v_stack[v_top]; } cc never returns on my machine. The work around that I found was to do the following: main() { int i; double v_stack[100], vs; int v_top; vs = v_stack[v_top]; i = ~ (unsigned int) vs; } Anyway, there are about 20 lines like the assignement statement in the bad example above in the file 'ops.c' in the calctool shar. Just apply the technique shown above to each case. Francis Sullivan Computer Automation, Tucson, AZ ...!hao!noao!arizona!catuc!francis catuc!francis@arizona.edu