Message-ID: <354FDA55.948BC6E7@mailexcite.com> Date: Tue, 05 May 1998 20:34:45 -0700 From: Wai Teng MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Help:Memory Allocation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk What is the difference between malloc and __dpmi_allocate_linear_memory? Am I correct to say that malloc allocates memory that is an offset from the _my_ds() whereas __dpmi_allocate_linear_memory allocates memory that can reside in any part of the physical memory? If I use __dpmi_allocate_linear_memory, then how do I free the memory once I'm done with it? Which should I use if I only want physical memory, not virtual memory paged from theswap file?