Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!uunet!coplex!disk!crazyrat From: crazyrat@disk.uucp (@jap) Newsgroups: comp.sys.amiga.programmer Subject: Re: Any restrictions with making programs PURE? Summary: C, PURE, resident, Dynamic allocation Message-ID: <1991Apr19.231119.6428@disk.uucp> Date: 19 Apr 91 23:11:19 GMT References: <1991Apr12.203658.11790@unlinfo.unl.edu> Organization: Digital Information Systems of KY Lines: 19 In article <1991Apr12.203658.11790@unlinfo.unl.edu>, 231b3678@fergvax.unl.edu (Phil Dietz) writes: > Are there any restrictions with making 'C' programs PURE? Is it just a matter > of linking it with cres.o? From my experience, the only way a program can be pure is to make the code re-entrant. That is, all variable space has been DYNAMICALLY allocated. I don't normally do re-entrant routines in C, but in Assembler. It's much easier.. > Now this isnt for a Load-and-Stay resident program with cback.o, it's simple > a cres.o example. @jap -- Joel C. Justen Crazyrat Productions Ltd. CRAZYRAT@DISK.UUCP JCJUST01@ulkyvx.BITNET