Re: finding out how much memory is available with malloc, gcc, cygwin

2003-08-19 Thread Reini Urban
Jim Holder schrieb: A program similar to the one listed below works for me on Linux but not under Cygwin. The idea is to find out how memory I can allocate on the machine. The Cygwin version keeps going (past 700MB), reporting that it has allocated more memory than the machine has. What am I doi

RE: finding out how much memory is available with malloc, gcc, cygwin

2003-08-18 Thread Kiran Bacche
Hi Jim Well in almost all current Oses, each application is allocated a virtual memory of 2^32 Bytes. This block is divided into many segments like data, text, bss, stack and heap. The max. size of heap depends varies from one application to another as the other segments vary from one applicat