home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6617 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.7 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!nessie!db.mcc.ac.uk!zlsiida
  2. From: zlsiida@fs1.mcc.ac.uk (dave budd)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Turbo Pascal mem[a:b] question
  5. Message-ID: <zlsiida.418@fs1.mcc.ac.uk>
  6. Date: 13 Nov 92 12:32:31 GMT
  7. References: <zlsiida.414@fs1.mcc.ac.uk>
  8. Sender: news@nessie.mcc.ac.uk (Usenet News System)
  9. Organization: Manchester Computing Centre
  10. Lines: 23
  11.  
  12. In article <zlsiida.414@fs1.mcc.ac.uk> zlsiida@fs1.mcc.ac.uk (dave budd) writes:
  13.  
  14. >One of our users claims he can increase a in mem[a:b]:=value; until it MUST 
  15. >be off the end of his machine.  This is the kind of user who always forgets 
  16. >to bring a disk with the program on it.  I've had a brief scan of the manual 
  17. >and it's not clear to me just exactly which bits of memory get addressed - 
  18. >eg I don't believe they'd let you write into a program segment.
  19. >Are all the addresses relative to the start of the data segment (or 
  20. >something along those lines)?
  21. >If the address is off the end of the machine or just bigger than the largest 
  22. >allowable, does it get truncated in some way?
  23. >Anybody want to give me a nice simple explanation of how mem[a:b] works?
  24.  
  25. After a little experimentation, it looks like it really does let you write 
  26. anywhere in memory at all.  It was never like this on mainframes!
  27. And I've found the memory map that shows the variable heapend holds the 
  28. address of the end of your machine - is it really true that you can write 
  29. past this address without generating an error, as my user claims?
  30.  
  31.         Practice random kindness and senseless acts of beauty
  32.  
  33.   Dave Budd, MCC, Oxford Rd, Manchester, England   (44|0)61-275-6033  
  34.   D.Budd@mcc.ac.uk                                          fax 6040
  35.