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