home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7986 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!email!ps1.iaee.tuwien.ac.at!Sorokin
  3. From: Sorokin@ps1.iaee.tuwien.ac.at (Sorokin Zhenya)
  4. Subject: Once more about big structures in BP7.
  5. Message-ID: <Sorokin.52.726598021@ps1.iaee.tuwien.ac.at>
  6. Lines: 30
  7. Sender: news@email.tuwien.ac.at
  8. Nntp-Posting-Host: pc77.iaee.tuwien.ac.at
  9. Organization: Inst. of General Electronics and Electroengeneering, TU Vienna
  10. Date: Sat, 9 Jan 1993 16:47:01 GMT
  11. Lines: 30
  12.  
  13. Hallo!
  14.  
  15. There was a discussion on the topic of big memory now allowed in BP7 
  16. already. However, one thing is still unclear to me: can I use structures 
  17. bigger than 64k in BP7 program? To be precise:
  18.  
  19. 1. Is the space for global variables now bigger than 64k in protected mode?
  20.  
  21. 2. What is the upper limit for stack size?
  22.  
  23. 3. Can I allocate a place for the structure, that is bigger than 64k on the 
  24. heap? If not, why (i.e. what procedure is used to allocate memory on the 
  25. heap? The conventional one from DOS takes only WORD as parameter, but maybe 
  26. DPMI has another call)?
  27.  
  28. 4. If 3. is "no", can I use some trick (if yes, which one) to allocate 
  29. __contigiously__ enough blocks of memory to simulate allocation of bigger 
  30. one?
  31.  
  32. 5. If 4. is "yes", than can I address, say, MyDoubleArr[100000] (vorbidden 
  33. in 8086 mode, but principally not in protected)?
  34.  
  35. 6. Can I write "type MyDoubleArr = array [1..100000] of double"?
  36.  
  37. I want to clarify these points before I decide (if at all) to upgrade to BP7.
  38.  
  39. Special note to Timo: just read bp7-info from GARBO. No clues. Maybe these
  40. questions with answers deserve to be added to bp7-info?
  41.  
  42. Thanks in advance,
  43.