Date: Mon, 15 Feb 1999 17:28:25 -0500 Message-Id: <199902152228.RAA27636@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <36C88B58.3E98@mail.dotcom.fr> (message from Xavier VASSOR on Mon, 15 Feb 1999 22:02:16 +0100) Subject: Re: newbie: Allocate/free memory References: <36C88B58 DOT 3E98 AT mail DOT dotcom DOT fr> Reply-To: djgpp AT delorie DOT com > I'm a newbie with DJGPP & DPMI environnement, and I would like to know > if the standard malloc/free functions are limited in any way, and if I > should use the DPMI functions instead. Actually, quite the opposite. You're much better off using malloc and free to manage memory. The *only* time you'd use the underlying DPMI calls is if you're dealing with DOS memory, and even then you could just use the DOS int 0x21 calls instead. If you need to allocate a chunk of extended memory with a known physical address, use XMS calls instead.