From: Charles Sandmann Subject: Re: Virtual memory file mapping? To: MRMILLER AT delphi DOT com (Martin R. Miller) Date: Thu, 1 Dec 1994 19:01:41 -0600 (CST) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu > It would be nice to be able to "map" an existing file into virtual > memory instead of allocating memory for it with new or malloc() and > then reading its contents into virtual memory (which can simply cause > some or all of it to be written out again into the vm swap file). I > think some other DOS extenders have calls to do this (PharLap's?). > > Perhaps this feature could be added to v2.x? This feature is how the executable code is read in V1.1x - see paging.c in GO32 on the implementation. This feature does not exist in DPMI, so it really cannot be provided universally. It could be added as an extension to the free dpmi (with a backup implementation if it was not found), but I don't think something like this will be in the first release (too many things to do).