Mail Archives: djgpp/1996/10/26/12:46:55
James Soutter (cgjks1 AT lut DOT ac DOT uk) wrote:
: : Ulrich Lauther (lauther AT cayley DOT zfe DOT siemens DOT de) wrote:
: :
: : I need to port my own memory manager from Unix to NT/Visual C++ and
: : can't find a sbrk function there.
: :
: : Would it be a good idea to steal the sbrk.s (which uses INT 21) from
: : the djgpp package, or would I get a grandiose crash?
: :
: : -ulrich
:
:
: Excuse my ignorance by why use sbrk(). I thought changing sbrk() was a
: bad idea because it broke the library functions that called malloc().
:
: In DJGPP, why not just use "__dpmi_allocate_memory" to allocate new
: memory for the memory manager (I havn't tried this). Similarly under
you didn't read my question. I need it under Visual C++ (which I am *forced*
to use).
I cannot use malloc (at least not conveniently) as I need memory aligned to
4096 byte boundaries.
: UNIX, why not just use mmap on /dev/zero to allocate memory (it works
: for me).
all UNIXes? (Need SunOS, Solaris, Linux, HP-UX).
-ulrich
[nosave]
----------------------------------------------------------------------------
Ulrich Lauther ph: +49 89 636 48834 fx: ... 636 42284
Siemens ZT AN 1 Internet: Ulrich DOT Lauther AT mchp DOT siemens DOT de
- Raw text -