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 marcov, 06.08.2026, 23:17

> The web server though is a giant mass of C code. So I figured I'd try a
> close approximation, and use overlays instead. I isolated a lot of the
> initialization code into a separate obj, and then laid out my sections so
> that other code would force it out after it was done. That failed
> miserably ... in theory it worked but the overlay manager ate all of the
> savings.

I don't know watcom but played with Borland and Topspeed overlays.

In both cases a block of memory/address space is allocated as a buffer for overlays. If you use it only once, the buffer is still allocated, i.e. you must have multiple overlays to make it worthwhile?

 

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