Mail Archives: djgpp/2002/10/22/13:00:03
Marcus Koch <mw DOT koch AT cityweb DOT de> wrote:
> 1.) As you see it only consumes 8192 bytes of memmory but i requested
> 1000000.
No, that's not what you really see. It's only what you think you see.
DJGPP, like the vast majority of Unix systems these days, is a "late
commit" allocator, i.e. it won't allocate any memory from the pool
(i.e. the DPMI server) until you actually touch it. To get a more
useful answer, try calloc() instead of malloc().
> Furthermore as i tried out djgpp a few month ago i had to load
> cwsdpmi in oder to compile or run programs. But now programs run and
> compile without loading cwsdpmi !!
The latter is the normal intended behaviour. You probably didn't have
CWSDPMI.EXE anywhere in your PATH before, or anywhere else where
DJGPP-built programs would have found it automatically.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -