From Brent Jensen
Jensen, Brent
bjensen@coi-world.com
Wed Aug 1 09:15:00 GMT 2001
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/
More information about the Cygwin
mailing list