Re: Memory size?
From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 05/27/04
- Next message: Dan Pop: "Re: [OT] Chinese Syntax"
- Previous message: Dan Pop: "Re: [OT] Re: writing a dailer in c for a 8051 based system"
- In reply to: CBFalconer: "Re: Memory size?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 May 2004 17:03:43 GMT
In <40B60CCA.ED21F2C4@yahoo.com> CBFalconer <cbfalconer@yahoo.com> writes:
>Joerg Schwerdtfeger wrote:
>>
>> how can I determine the total main-memory size and the size of
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> free memory available in bytes?
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> I tried to use mallinfo() from malloc.h - resulting some strange
>> values in Windows (cygwin, gcc 3.3.1) and always 0 in Linux
>> (2.4.22, gcc 3.3.2).
>
>I can't answer for Linux or Cygwin, but for DJGPP you can use
>nmalloc.zip and the malldbg module. mallinfo.h specifies the
>interface, and an info source file nmalloc.txh documents it all.
>Available at:
>
> <http://cbfalconer.home.att.net/download/nmalloc.zip>
>
>For all I know the source might function under Cygwin or Linux,
>compiled with gcc, but that has not been verified. It sticks
>quite closely to standard C, but has some deviations. To use it
>you will have to link the malloc.o and malldbg modules before the
>standard library.
>
>Bear in mind that it will not show main-memory size etc. in these
>days of virtual memory. It will show you how much you have used,
>and how much you have freed.
I.e. something completely different from what the OP wants to know...
But who cares, as long as it gives you the opportunity to post yet another
piece of self advertising ;-)
Dan
-- Dan Pop DESY Zeuthen, RZ group Email: Dan.Pop@ifh.de
- Next message: Dan Pop: "Re: [OT] Chinese Syntax"
- Previous message: Dan Pop: "Re: [OT] Re: writing a dailer in c for a 8051 based system"
- In reply to: CBFalconer: "Re: Memory size?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|