|
|
Steve H. <horn.74> wrote:
: Okay...that sounds good. Now how can one get the amount of free
: physical RAM left in EMS?
Don't confuse the term "EMS" with "memory above 1 MB". EMS is just a
standard/driver (?) to access the memory.
No program uses EMS anymore. With EMS you can use just 64 KB of memory
at a time. For example, you can't allocate 1 Meg of memory and use it
directly.
: There seems to be no function in any of my
: compilers to get this number. (I have Borland Turbo C++ 3.0, MS Quick
: C, and MS Visual C++ v6.0... and Borland C++ 5.0 on disk not loaded
: on my HD.)
There's no standard way to do it. Sometimes it's even an ambiguous thing.
As I said before, you can allocate 100 Megs even if there's not that much
RAM in the machine. In this case memory is RAM+Hard drive space, which can
be up to 4 Gigabytes. Even if you could get the amount of free memory, that
doesn't mean that you can allocate that amount of memory without swapping.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|