From owner-freebsd-current@FreeBSD.ORG Thu Jan 27 14:44:14 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 815AF16A4CE for ; Thu, 27 Jan 2005 14:44:14 +0000 (GMT) Received: from av3-1-sn4.m-sp.skanova.net (av3-1-sn4.m-sp.skanova.net [81.228.10.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 940FA43D55 for ; Thu, 27 Jan 2005 14:44:13 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av3-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 67CB337E4C; Thu, 27 Jan 2005 15:44:12 +0100 (CET) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av3-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 58F6337E45 for ; Thu, 27 Jan 2005 15:44:12 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with SMTP id 18D8B37E43 for ; Thu, 27 Jan 2005 15:44:11 +0100 (CET) Received: (qmail 29016 invoked by uid 1001); 27 Jan 2005 14:44:11 -0000 Date: Thu, 27 Jan 2005 15:44:11 +0100 From: Erik Trulsson To: huang wen hui Message-ID: <20050127144411.GA28920@falcon.midgard.homeip.net> Mail-Followup-To: huang wen hui , current@freebsd.org References: <20050127135825.39174.qmail@web51805.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050127135825.39174.qmail@web51805.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: current@freebsd.org Subject: Re: f77 could not allloc memory large than 512M? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 14:44:14 -0000 On Thu, Jan 27, 2005 at 09:58:24PM +0800, huang wen hui wrote: > hi, > This simple program could not run under FreeBSD/i386 > CURRENT or STABLE: > > program PROG > real A(128*1024,1024) > end > > $./prog > Abort > > $ldd ./prog > ./prog: > ./prog: signal 6 > > According to > "http://www.delorie.com/gnu/docs/gcc/g77_24.html", > I believe that f77 could not handle the array large > than 512M. f77 should give "too large to handle" > message when compiling the source. Do I miss something > or having some option can solve this problem? You are probably running into the default limits for how much resources a process can use. By default a process can not use more than 512MB of data. Read the limits(1) manpage for information on how to change these limits. -- Erik Trulsson ertr1013@student.uu.se