Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

startup rules (Developers)

posted by kerravon, Ligao, Free World North, 29.11.2022, 02:24

> How to mean "min memory" and "max memory" into exe:
> min memory = stack + all bss + min memory available for malloc/free

Ah! Thankyou. Now the numbers finally add up.

BSS is 7804H (30724), stack is 1000H (4096),
meaning I need:

(30724+4096)/16 = 2176.25 paragraphs, ie 2177
paragraphs, ie 881H, ie:

C:\devel\pdos\src>hexdump pcomm.exe 10 2
00000A 8208 ..

close enough to 882H

BFN. Paul.

 

Complete thread:

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