Memory Allocation over 64k
-
Hi, I'm trying to allocate memory in DOS using Borland Turbo C. I need about 1MB but the system only gives me 64Kb. does anybody know how can I change the memory model to get more memory? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
-
Hi, I'm trying to allocate memory in DOS using Borland Turbo C. I need about 1MB but the system only gives me 64Kb. does anybody know how can I change the memory model to get more memory? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
if i remember correctly, you have to choose different memory model. "small" supports only 64kb for stack and 64kb for data. try choosing 'compact' (64kb code, 64 kb static data and stack, 1 Mb heap) or 'large' (like 'compact', but 1Mb for code). you can change this from 'options' menu: Options -> compiler -> model. you can read more about this in Turbo C online help.
-
Hi, I'm trying to allocate memory in DOS using Borland Turbo C. I need about 1MB but the system only gives me 64Kb. does anybody know how can I change the memory model to get more memory? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
Turbo C is a 16-bit compiler. I do not know of an answer but try using the large or huge memory model.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Hi, I'm trying to allocate memory in DOS using Borland Turbo C. I need about 1MB but the system only gives me 64Kb. does anybody know how can I change the memory model to get more memory? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
Let's do the time warp again! (danananananana) Anyway. You need to use XMS or EMS or some other DOS memory extender if you want to go beyond 640K. Thankfully (for me, not you) I never did any heavy duty DOS programming. Even staying within the lower 640K was a nightmare I don't ever want to repeat. So unless there are fancier tools available now, do some googling on expanded or extended memory. DOS/4GW was one too, I think? Several games used that IIRC.