www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/26/21:07:10

Date: Thu, 26 Dec 1996 20:44:45 -0500
Message-Id: <199612270144.UAA23970@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: geneb AT web DOT wa DOT net
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.LNX.3.93.961226171217.9068A-100000@web.wa.net> (message
from Gene Buckle on Thu, 26 Dec 1996 17:13:01 -0800 (PST))
Subject: Re: Need "fancy" trick...

> > Yes, but there is an easier method for the entire program.  Try:
> > 	#include <crt0.h>
> > 	...
> > 	int	main()
> > 	{
> > 		_crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;
> 
> Michael, thanks for the tip.  I'll give it a shot this evening and see how
> it works out.  Should prove to be interesting...

Especially since you have to set it *before* the program starts, like
this:

	#include <crt0.h>

	extern int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;

	int	main()
	{
	}

By the time main() gets called, it's too late - your program has
already started.

- Raw text -


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