Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Using overlays to hide initialization code (Developers)

posted by Japheth Homepage, Germany (South), 06.08.2026, 21:36

> ... or would somebody who wanted to do that have to roll
> their own using the DOS function calls to load an overlay?
>
> (I'm using Open Watcom 1.9.)

I don't think there is a much better approach than using overlays.

The most extreme memory saving DOS program that I put my hands on is DEBUG. Here the initialization code is at the end of the binary, behind data and stack. After initialization, the place is used for uninitialized variables. But DEBUG is an assembly program, where full control for segments and their ordering is possible. With Open Watcom, you're more or less stuck to the DOSSEG segment ordering ( 1. code, 2. segments not belonging to dgroup, 3. dgroup ). In protected mode, you possibly could mark sections (16-bit) or pages (32-bit) as discardable, but for real-mode I cannot see anything similar.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
23743 Postings in 2250 Threads, 410 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum