Date: Sun, 11 Aug 1996 11:05:52 +0200 (IST) From: Eli Zaretskii To: patrick fox Cc: djgpp AT delorie DOT com Subject: Re: locking memory In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 9 Aug 1996, patrick fox wrote: > Could anyone tell me a way that I can lock all of my code from paging out > to disk? I am using mixed C and assembly. Set the `_CRT0_FLAG_LOCK_MEMORY' bit in `_crt0_startup_flags'. These are described in the libc on-line reference. Another way is to use CWSDPR0 or PMODE/DJ as your DPMI server; these both disable virtual memory so your code and data stay paged in at all times.