Circa 1994 I didn't know what "huge" memory model was,
and selected "large" to write PDOS/86 in.
I then found that my already-written memory management
routines didn't allow me to manage more than 64k of
memory.
Rather than change my routines, I hacked PDOS/86 to get
more than 64k of memory.
Fast-forward nearly 3 decades, and I now know what "huge"
means. After an enormous effort, PDOS/86 is now built with
the "huge" memory model, the hack is gone, and my original
memory management routines work unchanged.
My size_t is 32 bits.
This is all pure 8086 code generated by Watcom C, but
using PDPCLIB as the C library.
Available at http://pdos.org
(released an hour or so ago).
BFN. Paul.
and selected "large" to write PDOS/86 in.
I then found that my already-written memory management
routines didn't allow me to manage more than 64k of
memory.
Rather than change my routines, I hacked PDOS/86 to get
more than 64k of memory.
Fast-forward nearly 3 decades, and I now know what "huge"
means. After an enormous effort, PDOS/86 is now built with
the "huge" memory model, the hack is gone, and my original
memory management routines work unchanged.
My size_t is 32 bits.
This is all pure 8086 code generated by Watcom C, but
using PDPCLIB as the C library.
Available at http://pdos.org
(released an hour or so ago).
BFN. Paul.