Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Turbo Pascal overlays (Announce)

posted by Rugxulo Homepage, Usono, 18.02.2020, 03:03

> Just to play around, I have a small project that is nine files (8 units and
> one main .PAS), not even 600 lines total. It doesn't use the heap at all
> (so uses roughly 33 kb of memory).

Because overlays use the heap, I wasn't sure, so I just removed the {$M ...} pragma from my source. But I should've just used {$M 4096,0,655360} to minimize the stack (which is a generous 16k by default, quite large for 16-bit). So that saves me an additional 12k. So the program really only needs about 20k of RAM. Obviously it doesn't matter than much on "modern" (full 640k) machines, but since we're splitting hairs anyways ....

 

Complete thread:

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