From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8884: closed (Re: bug#8884: wide-int crash) Date: Tue, 18 Oct 2011 06:55:09 -0400 Message-ID: References: <4D3AFF8D-3F70-4C2C-A053-49C3FB2C1167@Freenet.DE> <90642F8F-4E64-4EE8-ADEF-4140147845B4@Freenet.DE> <4E9D11DA.7000303@cs.ucla.edu> <23C33A8D-E7C1-49A1-9477-12AC9826BA06@Freenet.DE> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1318935380 19188 80.91.229.12 (18 Oct 2011 10:56:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 10:56:20 +0000 (UTC) Cc: 8884@debbugs.gnu.org, eggert@cs.ucla.edu To: Peter Dyballa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 12:56:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RG7LB-0004X1-Mj for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 12:56:13 +0200 Original-Received: from localhost ([::1]:38247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG7LB-0008JY-1W for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 06:56:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG7L7-0008J0-6V for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 06:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG7L5-0004bx-DF for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 06:56:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG7L5-0004bp-AK for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 06:56:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RG7Ly-0001CV-9w for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2011 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8884-submit@debbugs.gnu.org id=B8884.13189353784565 (code B ref 8884); Tue, 18 Oct 2011 10:57:02 +0000 Original-Received: (at 8884) by debbugs.gnu.org; 18 Oct 2011 10:56:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RG7LA-0001BT-D3 for submit@debbugs.gnu.org; Tue, 18 Oct 2011 06:56:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RG7L6-0001BL-Je for 8884@debbugs.gnu.org; Tue, 18 Oct 2011 06:56:09 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RG7K9-0006os-Oo; Tue, 18 Oct 2011 06:55:09 -0400 In-reply-to: <23C33A8D-E7C1-49A1-9477-12AC9826BA06@Freenet.DE> (message from Peter Dyballa on Tue, 18 Oct 2011 11:14:10 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 18 Oct 2011 06:57:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52779 Archived-At: > From: Peter Dyballa > Date: Tue, 18 Oct 2011 11:14:10 +0200 > Cc: 8884@debbugs.gnu.org > > > (A 32-bit machine can't access more than 4 GiB of memory. > > It rather looks that *I* am missing some understanding... I thought that the use of wide ints on a 32-bit architecture was meant to give it the ability to handle larger files. It was, and it does. See below. > What is the intention of their introduction then? Increasing the size of the binary? :-) > ** There is a new configure option --with-wide-int. > With it, Emacs integers typically have 62 bits, even on 32-bit machines. Perhaps the NEWS entry could be improved. > From buffers.texi this text is derived: > > A buffer's size cannot be larger than some maximum, which is defined > by the largest buffer position representable by the "Emacs integer" > data type. This is because Emacs tracks buffer positions using that > data type. For 32-bit machines, the largest buffer size is 256 > megabytes. > > 4 GiB is 16 times that value, quite a bit more. Maths with large numbers, greater than 2**28, works. Exactly. So with this option, you can: . visit files or have buffers up to 4GB . use integer arithmetics up to 62-bit values None of these is possible without this option. The first of these two advantages is the more important one: Emacs can now access the largest files supported by the OS, instead of having a more-or-less arbitrary limit below that. Sounds better now?