Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,779 of 2,978    |
|    P. Scott Harris to Jim Leonard    |
|    Re: Any way to limit memory usage of TP     |
|    15 Jun 05 17:07:39    |
   
   From: psharris.MAPS@magma.MAPS.ca   
      
   I wasn't sure at the time so I ran a multi iteration test using various block   
   sizes (multiples of 8 or 16 bytes I think) and never found an occasion when   
   they   
   weren't contiguous. I always allocated the memory at the start of the programme   
   so that there was no heap fragmentation. I think I also checked to confirm that   
   the offset part of the pointer was always zero (0) which it always seemed to   
   be.   
   HTH.   
      
   P. Scott Harris   
   H&L Associates   
      
   Jim Leonard wrote:   
   > P. Scott Harris wrote:   
   >   
   >>{ use heap to allocate 64K memory as 2 consecutive blocks }   
   >   
   >   
   > Is it *guaranteed* that Turbo Pascal 7 allocates memory blocks   
   > contiguously? (If so, that solves my problem; I'll just allocate two   
   > 32K blocks in a row.)   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca