Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

huge memory model (Announce)

posted by Guti Homepage, 25.11.2022, 10:23

> When I started writing PDOS/86 I didn't know
> what "huge" actually was, and I thought it was
> for strange people.
>
> I chose "large" for PDOS/86 and when I went to
> use my memory management routines, written in
> pure C90, originally for MVS, I found that I
> was stuck - I could only manage 64k, even
> though I was using large memory model.
>
> Rather than change my seemingly valid C90 code,
> I instead put a hack into PDOS/86.
>
> About an hour ago the hack was finally killed
> off and the problem was solved simply by
> recompiling with the "huge" memory model and
> a 32-bit size_t. With pure 8086 instructions
> from Watcom C, but using PDPCLIB as the C
> library.
>
> Code available at http://pdos.org
>
> BFN. Paul.

I discovered huge memory model back in the Turbo C++ days. A simple solution to adress all available conventional memory with chunks larger than 64K.

---
Visit my personal blog at https://www.javiergutierrezchamorro.com

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 420 users online (0 registered, 420 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum