From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23915 invoked by alias); 13 Jan 2005 17:32:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23862 invoked from network); 13 Jan 2005 17:32:03 -0000 Received: from unknown (HELO hotmail.com) (65.54.187.75) by sourceware.org with SMTP; 13 Jan 2005 17:32:03 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 13 Jan 2005 09:32:02 -0800 Message-ID: Received: from 128.59.145.137 by by18fd.bay18.hotmail.msn.com with HTTP; Thu, 13 Jan 2005 17:31:21 GMT X-Originating-Email: [dsdshgu@hotmail.com] X-Sender: dsdshgu@hotmail.com From: "xuejun gu" To: gcc-help@gcc.gnu.org Bcc: Subject: memory problem Date: Thu, 13 Jan 2005 17:32:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 13 Jan 2005 17:32:02.0848 (UTC) FILETIME=[CB3DBA00:01C4F995] X-SW-Source: 2005-01/txt/msg00118.txt.bz2 HI, The machine I used have 6GB physical memory. However, when I run the c++ program I found the biggest array I can assign like double A[10000][100] I complied as: $ gcc test1.cpp -o test1 $ ./test1' When I increased the array size to double A[10000][120], it gave the message: 'Segmentation fault' Is there any way to solve the problem? Thanks! here is the detail information of my machine: 1) cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 6349705216 1669341184 4680364032 0 161710080 1048535040 Swap: 6547218432 0 6547218432 MemTotal: 6200884 kB MemFree: 4570668 kB MemShared: 0 kB Buffers: 157920 kB Cached: 1023960 kB SwapCached: 0 kB Active: 970660 kB Inactive: 425152 kB HighTotal: 5373376 kB HighFree: 4126628 kB LowTotal: 827508 kB LowFree: 444040 kB SwapTotal: 6393768 kB SwapFree: 6393768 kB 2) cat /etc/redhat-release Red Hat Linux release 9 (Shrike) 3) gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 4) cat /proc/mtrr reg00: base=0x100000000 (4096MB), size=2048MB: write-back, count=1 reg01: base=0x180000000 (6144MB), size=1024MB: write-back, count=1 reg02: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1 reg03: base=0x80000000 (2048MB), size=1024MB: write-back, count=1 reg04: base=0xbff80000 (3071MB), size= 512KB: uncachable, count=1 reg05: base=0xbff80000 (3071MB), size= 512KB: uncachable, count=1 reg06: base=0xc8000000 (3200MB), size= 128MB: write-combining, count=1 reg07: base=0xe0000000 (3584MB), size= 256MB: write-combining, count=1 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/