Mail Archives: djgpp/2000/12/05/08:29:54
Hi,
I need to test how one program (that uses DJGPP environment) will work when
certain amount of RAM is available (not some total amount of virtual memory,
but amount of RAM available). And that amount of RAM is fewer than PC I'm
going to test it on has. That program needs to operate without using swap
file. That program can't run under Win*, so I don't have an option of writing
custom .pif file that limits memory to that amount. That program uses CWSDPMI
and I would like not to switch to any other DPMI host if possible.
I use dos that comes with Win95 OSR2. Can himem.sys be used to control
amount of memory used by DPMI? Or should I just hack CWSDPMI and rebuild it?
May be somebody can suggest a patch to CWSDPMI (or at least function
name/filename to hack in)?
And IMO it seems that limiting amount of RAM is a general purpose task, so
support for it can be added to cwsparam.exe/cwsdpmi.exe (or solution added to
FAQ).
Thank you in advance.
Best regards,
-Vlad
- Raw text -