www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: segfault on memory intensive programs |
Date: | Thu, 30 Mar 2006 14:21:40 +0100 |
Message-ID: | <065201c653fc$e1739430$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
In-Reply-To: | <97b0303c0603300509h2e4a0968k2594fdc0226e2b8f@mail.gmail.com> |
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 30 March 2006 14:09, Alexander Herrmann wrote: >> int main( void ) >> { >> // Set up the timer and start it ticking. >> Timer timer; >> timer.startTimer(); >> >> // We multiply m1 and m2, and put the result in m3. >> int m1[N][N]; >> int m2[N][N]; >> int m3[N][N]; >> ... >> >> >> On Cygwin, the code runs fine for a matrix rank >> between 400 and 0. Somewhere N=400 and N=600, the >> program segfaults under Cygwin. > m1[N][N], m2[N][N] and m3[N][N] is static memory so why should it fail? No, those are stack-based 'auto' variables. Unless you've got some different version of the source than what was posted about. > Additionaly you can make it static See, if you think it's already static memory, how do you think he can make it any more static than it already is? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |