Change heap size

DOS specific questions.
Post Reply
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Change heap size

Post by Cpcdos »

Hi,

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
-Wl heap=0x100000
-Wl,
-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
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Change heap size

Post by St_W »

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).
Post Reply