home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / internal / 2105 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!uunet.ca!xenitec!mongrel!amdunn
  2. From: amdunn@mongrel.UUCP (Andrew M. Dunn)
  3. Newsgroups: comp.unix.internals
  4. Subject: Re: Question about longjmp ()
  5. Message-ID: <1993Jan10.173112.4359@mongrel.UUCP>
  6. Date: 10 Jan 93 17:31:12 GMT
  7. Article-I.D.: mongrel.1993Jan10.173112.4359
  8. References: <C0JpMo.1rGr@austin.ibm.com> <1993Jan9.124323.13018@csie.nctu.edu.tw> <1639@yetti.UUCP>
  9. Organization: A. Dunn Systems Corporation, Kitchener, Ontario, Canada
  10. Lines: 23
  11.  
  12. In article <1639@yetti.UUCP> minas@cs.yorku.ca (Minas Spetsakis) writes:
  13. >
  14. >In article <1993Jan9.124323.13018@csie.nctu.edu.tw>, cp78065@csie.nctu.edu.tw (Ji-Tzay Yang) writes:
  15. >|> :     My question is, should the value of i change or not.
  16. >It all depends if i is a register. C decides what to store in a register. The
  17. >register directive is only a hint.
  18. >
  19. >The only way I can think that enforces i not to be a register is to have at
  20. >some point in your code a &i. But then, I never tested that. Or have it global.
  21.  
  22. Even that's not a guarantee.  Some processors map the registers to low
  23. address space.  A C compiler on one of those beasts could correctly produce
  24. &i even if i was a register variable!
  25.  
  26.  
  27.  
  28. Andy
  29.  
  30. -- 
  31. :-------------------------------------------------------------------------:
  32. :  Andy Dunn           <amdunn@mongrel.UUCP> or <dunn5177@mach1.WLU.CA>   :
  33. :  "AT&T thinks Usenet is an Underground organization" - are we really?   :
  34. :-------------------------------------------------------------------------:
  35.