Mail Archives: djgpp/1999/07/15/22:50:45
On Wed, 14 Jul 1999 12:06:42 -0400, "Campbell, Rolf [SKY:1U32:EXCH]"
<cp1v45 AT americasm01 DOT nt DOT com> wrote:
Hello Rolf,
>
>Well, first of all, DJGPP doesn't use XMS memory. It runs in 32-bit
>protected mode, which means it just uses memory. (AFAIK XMS has no meani=
>ng
>in 32-bit mode). This also means that you don't need an XMS manager.
>Also, CWSDPMI uses virtual memory which allows it to simulate extra memor=
>y
>using your hard-disk.
I donīt need especially XMS-Ram, but only 32 Bit linear addressable
Ram, but virtual memory must be switched off.
>
>#include <dpmi.h>
>int __dpmi_get_memory_information(__dpmi_memory_info *_buffer);
>
Now I have a typical C beginners question :-(, if I use this, the
compiler makes an error message '__dpmi_memory_info' undeclared (first
use in this function). I donīt understand this, because the structure
is declared in <dpmi.h>.
> You can use this function to find the largest allocatable block of
>memory. But this will not include memory that has already been allocated=
>
>and free'd by your program. BTW, why do you need to know how much is
>available? Most programs need a certain, fixed amount.
>
This seems to be an disadvantage, but I only need to allocate the
block at the beginning and i don't free it, so it should work. The
program shall test the Ram, because I have problems with SIMMs. Years
ago I have written such a program in Fortran77, it *must* work in C! I
want to write test patterns in this block and think about an array to
fill and verify it. The address of the memory cell should be offset +
index.
Greetings, Winfried
- Raw text -