stsp / dj64dev

dj64dev development suite
https://github.com/stsp/dj64dev/
GNU Lesser General Public License v3.0
5 stars 1 forks source link

enable 32bit memory allocators #2

Closed stsp closed 3 months ago

stsp commented 3 months ago

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.