Mail Archives: djgpp/1998/05/04/04:08:14
On 3 May 1998, MalcolmJ7 wrote:
> I am just begining in DJGPP. I am used to 640K memory. If I use the simple
> function Malloc(6000000) will i allocate 6MB of RAM or do i have to do
> something else?
No, calling `malloc' is the only thing you need to do. If you have any
problems with that, check out chapter 15 in the DJGPP FAQ list
(v2/faq210b.zip from the same place you get DJGPP) for some subtleties.
> When i use functions such as biosmemory, or go32_dpmi_get_physical_memory(), it
> returns my total memory not whats left.
That's not true, _go32_dpmi_remaining_physical_memory reports the
*remaining* memory amount. (Don't use biosmemory, it only reports 640K.)
- Raw text -