Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: C optimizer Keywords: C pure function optimization Message-ID: <11859@haddock.ima.isc.com> Date: 23 Feb 89 21:48:59 GMT References: <515@larry.UUCP> <9648@smoke.BRL.MIL> <36034@bbn.COM> <3121@ficc.uu.net> <1028@frog.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 12 In article <1028@frog.UUCP> john@frog.UUCP (John Woods) writes: >In article <3121@ficc.uu.net>, peter@ficc.uu.net (Peter da Silva) writes: >>Can anyone think of any pure system calls? > >[What about getpid()?] Nope. register int i = getpid(); if (fork() != 0) exit(0); if (getpid() != i) printf("impure!\n"); Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint