home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7635 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.7 KB  |  34 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!gatech!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!slip201.telnet1.QueensU.CA!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: 64K segments
  5. Message-ID: <dmurdoch.243.725064736@mast.queensu.ca>
  6. Lines: 22
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. References: <1992Dec22.195752.6805@purelogic.cs.uwlax.edu>
  10. Date: Tue, 22 Dec 1992 22:52:16 GMT
  11.  
  12. In article <1992Dec22.195752.6805@purelogic.cs.uwlax.edu> butte_ms@serine.uwlax.edu (Mike S. Butterbrodt S92) writes:
  13. >Probably a FAQ.   Was mentioned not long ago that there are way (painfull or  
  14. >otherwise) to get around the 64K segment limit in BP 7.0.  Ok, so how.  I would  
  15. >appreciate a few tips on this most annoying feature of an otherwise nifty  
  16. >language.
  17.  
  18. The same as in previous versions:  if you want a total allocation that's 
  19. bigger than 64K, break it up into pieces that are smaller than 64K.  For 
  20. example, for a 100 x 100 array of Doubles (80000 bytes, too big), use an
  21. array of 100 pointers to arrays of 100 doubles (400 bytes for the pointers, 
  22. 800 bytes for each array).
  23.  
  24. The advantage under BP 7 is that in protected mode the heap will be much 
  25. bigger; 1000 x 1000 arrays might be feasible.  This would be on a machine 
  26. with lots of ram, or under a DPMI server (like Windows or QDPMI, but not 
  27. the one bundled with BP 7) that offers virtual memory.  I haven't tried 
  28. pushing the allocation limits; you might well run out of some other resource 
  29. before you hit the RAM limit.  For instance, there's a system wide limit of 
  30. 8192 selectors; 1000 large allocations would make a significant dent in that.
  31.  
  32. Duncan Murdoch
  33. dmurdoch@mast.queensu.ca
  34.