www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/18/22:58:48

Mime-Version: 1.0
To: Colin Blackburn <cgb3 AT york DOT ac DOT uk>
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: memory allocation
Cc: djgpp AT delorie DOT com
Date: Mon, 18 May 1998 19:16:23 -0700
Message-ID: <19980519021611.AAF21806@ppp104.cartsys.com>

At 05:26  5/18/1998 +0300, Eli Zaretskii wrote:
>
>On Mon, 18 May 1998, Colin Blackburn wrote:
>
>> I need to malloc a chunk of memory < 64K, I also need to be sure that 
>> this memory does not cross a 64K page boundary.
>
>The usual way to do this is to allocate 128K and use the part that's 
>64K-aligned.

Also note that you'll have to use `__dpmi_allocate_dos_memory' and use
farptr functions to access it; standard malloc memory will not work.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019