Mail Archives: djgpp/1997/03/11/02:16:24
Shawn Hargreaves (Shawn AT talula DOT demon DOT co DOT uk) wrote:
: Somewhere in your program, add a global variable:
: #include <crt0.h>
: int _crt0_startup_flags = _CRT0_FLAG_NONMOVE_SBRK |
: _CRT0_FLAG_LOCK_MEMORY;
: Look in crt0.h for details about this: there are a lot of other handy
: flags that you can set in this way, to control the behaviour of the
: startup code and library routines.
There's something I'm curious about. When I looked through crt0.h, it
mentioned that the LOCK_MEMORY flag could be turned on and off during
execution. But none of the programs I've looked through do this; they all
use the method of surrounding interrupt code with dummy functions and
locking the memory in between, which has always seemed chancy to me. CAN you
turn it on and off? Is there a reason why no one does?
- Raw text -