CompuServe Messages

Generating PURE code?

    21-Jan-89 10:39:18
Fm: Bob Rakosky 75156,336
To: Paul Whittemore 72007,3305
While you are right, it is not necessary to stress both points. A program that is reentrant IS, by definition, reexecutable. In fact, using your definition's example of reexecutable, that program WOULD NOT be reentrant, since it is modifying itself (its global variables) at initialization, which is a definite NO-NO for rentrant code. The ONLY things that can be modified by a reentrant program are variables that exist on the stack, variables that exist solely in registers, or variables that have been AllocMem()'d.