Change heap size

DOS specific questions.
Posts: 204
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003

Change heap size

Postby Cpcdos » Aug 06, 2016 12:17


I would to know how to change heap size from FBC.EXE parameters ?

I know -t <value in kb> for the stack
I've tested "-Wl" "-Wa" arguments

Code: Select all

-Wl --heap=0x100000
-Wl heap=0x100000
but I've "unrecognized option" (Same problem with -Wa)

I want to use under FreeBasic compiler the

Code: Select all

-Wl,--stack=0x100000 -Wl,--heap=0x100000
How I proceed ?

Thank you
Posts: 1380
Joined: Feb 11, 2009 14:24
Location: Austria

Re: Change heap size

Postby St_W » Aug 06, 2016 16:48

Maybe that's different for DOS, but usually you don't specify a heap size explicitly AFAIK. You rather use memory allocation/deallocation functions of your operating system or programming language (e.g. Allocate/Deallocate in FB or calloc/malloc/free in C (or in FB too)). So all memory is available to your program in theory and you are limited by the memory allocations, which may fail if no more memory (or no more large enough block of contiguous memory is available).

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest