Path: utzoo!utgpu!news-server.csri.toronto.edu!eecg.toronto.edu!drb Newsgroups: comp.sys.sgi From: drb@eecg.toronto.edu (David R. Blythe) Subject: C compiler weirdness? Message-ID: <1991Apr8.023545.11197@jarvis.csri.toronto.edu> Organization: EECG, University of Toronto Distribution: comp.sys.sgi Date: 8 Apr 91 06:35:46 GMT Lines: 13 I recently dug up a copy of the hoc calculator described in kernighan & pike only to discover that the C compiler does not increment pc until after the function call returns in the following statment: (*(*pc++))(); whereas the rest of the program is assuming it is done before the function is actually called. Is the compiler interpretation supposed to be implementation dependent? I would suspect not, but then I can't believe no one else has run into this before (On the other hand K&P is pre-ANSI). Sorry, if this has been hashed out before. And for those keeping score this is IRIX 3.3.1 david blythe ontario centre for large scale computation drb@clsc.utoronto.ca