delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/30/07:18:16

X-Spam-Check-By: sourceware.org
Date: Thu, 30 Mar 2006 14:18:02 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: segfault on memory intensive programs
Message-ID: <20060330121802.GG20907@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060330110801 DOT GA18039 AT calimero DOT vinschen DOT de> <063d01c653eb$0f2ee7b0$a501a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <063d01c653eb$0f2ee7b0$a501a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 30 12:14, Dave Korn wrote:
> On 30 March 2006 12:08, Corinna Vinschen wrote:
> 
> 
> >>> #define  N          600 // Matrix rank
> >>> 	// We multiply m1 and m2, and put the result in m3.
> >>> 	int m1[N][N];
> >>> 	int m2[N][N];
> >>> 	int m3[N][N];
> 
> > No wonder.  600**3 * sizeof (int) * 3 == 2592000000 ~= 2.4 Gigs.
> 
>   Those matrices are only 2d!

Oh, hmm.  600**2 * sizeof (int) * 3 == 4320000 = 4.1 Megs.

Maybe reserving a stack bigger than 4Megs would help, though?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019