home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!email!ps1.iaee.tuwien.ac.at!Sorokin
- From: Sorokin@ps1.iaee.tuwien.ac.at (Sorokin Zhenya)
- Subject: Re: Once more about big structures in BP7.
- Message-ID: <Sorokin.53.726615574@ps1.iaee.tuwien.ac.at>
- Lines: 41
- Sender: news@email.tuwien.ac.at
- Nntp-Posting-Host: pc77.iaee.tuwien.ac.at
- Organization: Inst. of General Electronics and Electroengeneering, TU Vienna
- References: <Sorokin.52.726598021@ps1.iaee.tuwien.ac.at> <dmurdoch.287.726607429@mast.queensu.ca>
- Date: Sat, 9 Jan 1993 21:39:34 GMT
- Lines: 41
-
- In article <dmurdoch.287.726607429@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
- >In article <Sorokin.52.726598021@ps1.iaee.tuwien.ac.at> Sorokin@ps1.iaee.tuwien.ac.at (Sorokin Zhenya) writes:
- >
- >>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)?
- >
- >Yes, you can. In fact, you can in DOS too - INT 21 function 48h takes a word
- >as a parameter, but it specifies the number of 16 byte paragraphs. Under TP
- >it'll usually fail because TP has grabbed all memory for itself, but if you
- >ask for a small heap or shrink it using SetMemTop, you can allocate
- >a block of any size.
- >
-
- 16*64k = 1MB = 128k of double. OK to begin with.
-
- >
- >It's also not hard to work with the real mode heap
- >manager and do your own allocations of bigger than 64K.
- >
-
- Do you know of some units, ideas, algorithms, etc.? "It's also not hard"
- sounds well, but eats up a lot of time.
-
- >Borland has chosen not to
- >put huge object support into TP. Other real mode languages have it. The
- >8086/80286 architecture makes it more difficult than on a 32 bit machine,
- >but certainly not impossible.
- >
-
- Did Borland do it on BC (TC)?
- What languages support huge objects? And which ones do it in protected mode
- (should be more effective, I suppose)?
-
- >
- >Duncan Murdoch
-
- Seems like I won't buy BP7...
-
- Thanks,
-