home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0040.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.0 KB  |  24 lines

  1. Submitted-by: barmar@think.uucp (Barry Margolin)
  2.  
  3. In article <16213@cs.utexas.edu> jason@cnd.hp.com (Jason Zions) writes:
  4. >Instead of replacing "executes any code", I think you could just add the
  5. >phrase "which modifies memory or calls any function" and maintain the
  6. >intent. Examining variables doesn't depend upon the virtual memory
  7. >relationship between child and parent, but munging a stack for a function
  8. >call might behave differently and hence must be rendered undefined.
  9.  
  10. Rather than "modifies memory" I suggest it be "modifies any variables" or
  11. something like it that refers to high-level objects created by the C
  12. program.  Just examining a variable may modify memory; on a stack machine,
  13. comparing a variable with zero generally requires pushing the variable onto
  14. the stack, and even on a register machine loading the variable into a
  15. register might force the register's old value to be written to memory.
  16. --
  17. Barry Margolin, Thinking Machines Corp.
  18.  
  19. barmar@think.com
  20. {uunet,harvard}!think!barmar
  21.  
  22. Volume-Number: Volume 22, Number 41
  23.  
  24.