Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Jensen, Brent" To: "'cygwin AT cygwin DOT com'" Subject: From Brent Jensen Date: Wed, 1 Aug 2001 09:13:12 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" I have a large (memory intensive) fortran program that requires knowing the physical memory resident on the pc it runs on. I prefer to run the fortran on cygwin's g77. Is there an easy way to obtain the physical memory resident on any given pc from inside g77? I have thought of using a script to run the fortran and write physical memory to a file which the fortran can then read. However, I don't know how to write total physical memory to a file in windows 2000 or NT. I have also thought about converting the fortran to c, using f2c, distributed in linux. Others have told me there are interfaces that can obtain physical memory size in C. Am I on the right track or is the some API connection in g77 that can handle this. Thanks to anyone that may know more about this. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/