Currently the 32bit memory allocators are disabled.
malloc() allocates the host's memory and has the
64bit pointers. The only way to allocate from 32bit
space is to use __dpmi_allocate_memory(). This has
multiple downsides, like being slow, over-aligned
and, most importantly, compiled on djgpp requires
the call to __djgpp_nearptr_enable() (on dj64 the
"nearptrs" are always enabled).
Currently the 32bit memory allocators are disabled.
malloc()
allocates the host's memory and has the 64bit pointers. The only way to allocate from 32bit space is to use__dpmi_allocate_memory()
. This has multiple downsides, like being slow, over-aligned and, most importantly, compiled on djgpp requires the call to__djgpp_nearptr_enable()
(on dj64 the "nearptrs" are always enabled).It would be good to enable the 32bit allocators.