POV-Ray : Newsgroups : povray.programming : Memory? : Re: Memory? Server Time
28 Jul 2024 18:15:29 EDT (-0400)
  Re: Memory?  
From: Nieminen Mika
Date: 19 Aug 1999 04:55:13
Message: <37bbc671@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.