www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=tT8gE6PExEXKcrTK | |
I8MbGqrVfIu3D8Minutb7v8qVomwALxXe5t9kl5jqy2GRmW6dL3ZB8C+gf6FyYra | |
F2G/jEi53p+KS4GdvR051TA9XnHd9a/m+tE9aICCLv440AxJNn+9q3QfZDfzGgZL | |
5vaQji8vDBRVl/PbFGdJ1E4rGL4= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=aHszOn1UPaheBefiunssoF | |
l3e0U=; b=pWxdEuxltQFu4/pGBerSIfllr7DEEu4OnUN+F6QnnoCFEPDu3N9+th | |
QEf549MjTOOJMGoLvfpa5QKMegG1bUOWIy1zGvLhTDNKAUzPUJ7+ddEHSbEYFm+H | |
S7WkAmfeD2F4jzuMjr9zsYrQctG1AhfpsuV106wdPH7Qso0x/OrAM= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= |
X-HELO: | mailsrv.cs.umass.edu |
Reply-To: | moss AT cs DOT umass DOT edu |
Subject: | Re: My arrays in C are too large |
To: | cygwin AT cygwin DOT com |
References: | <CY4PR1101MB2133F5567FF267C1DADD000681B30 AT CY4PR1101MB2133 DOT namprd11 DOT prod DOT outlook DOT com> |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Message-ID: | <93c59d26-82dc-8945-045e-6c0bb1f6b0e9@cs.umass.edu> |
Date: | Fri, 13 Sep 2019 07:37:15 -0400 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <CY4PR1101MB2133F5567FF267C1DADD000681B30@CY4PR1101MB2133.namprd11.prod.outlook.com> |
X-IsSubscribed: | yes |
On 9/13/2019 7:04 AM, Blair, Charles E III wrote: > I have been using on other machines a program that includes > > char *a[50][8192]; > > but this declaration, by itself, gives "segmentation" errors. > > [8192 is BUFSIZ on other machines, although it seems to be 1024 here. > The program uses 50 different permutations on strings of size BUFSIZ.] It's surprising to me, since that is 50 * 8192 = 400K char * pointers, which is likely 1600K bytes (assuming a 32-bit machine). Not tiny, but well within the scope of modern machines. The strings themselves are what will take a lot of space, unless a lot of the pointers are NULL or something. There would seem to be something else going on. Can you reduce this to the smallest failing example? Regards - EM -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |