From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: Difficulties byte-compiling very large .el file Date: Tue, 25 Aug 2009 11:16:06 +0100 Message-ID: <19091.47590.276871.440616@parhasard.net> References: <794057160908191449t4b23080cjf2b85cb0f8e4f589@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251195557 12228 80.91.229.12 (25 Aug 2009 10:19:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 10:19:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: aemoncannon@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 12:19:10 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mft6y-0008OC-72 for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 12:18:44 +0200 Original-Received: from localhost ([127.0.0.1]:48561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mft6w-0008Df-EO for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 06:18:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mft4a-0007Fo-2P for emacs-devel@gnu.org; Tue, 25 Aug 2009 06:16:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mft4U-0007EZ-Pm for emacs-devel@gnu.org; Tue, 25 Aug 2009 06:16:15 -0400 Original-Received: from [199.232.76.173] (port=46746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mft4U-0007ET-Ji for emacs-devel@gnu.org; Tue, 25 Aug 2009 06:16:10 -0400 Original-Received: from daedalus.ipv4.asclepian.ie ([213.133.100.226]:62593 helo=daedalus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mft4U-0008Qy-4q for emacs-devel@gnu.org; Tue, 25 Aug 2009 06:16:10 -0400 Original-Received: by daedalus.asclepian.ie (Postfix, from userid 1002) id 5D47DB834; Tue, 25 Aug 2009 11:16:06 +0100 (IST) In-Reply-To: <794057160908191449t4b23080cjf2b85cb0f8e4f589@mail.gmail.com> X-Mailer: VM 8.0.12 under 21.5 (beta29) "garbanzo" 2c64d2bbb316 XEmacs Lucid (x86_64-unknown-freebsd7.2) X-Echelon-distraction: Gamma mania Lebed FSK embassy COSMOS X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114579 Archived-At: Ar an nao=C3=BA l=C3=A1 d=C3=A9ag de m=C3=AD L=C3=BAnasa, scr=C3=ADobh A= emon Cannon:=20 > [...] Here's the source in question: > http://aemon.com/file_dump/as3_elispParser.el >=20 > If you're interested in trying to compile, you'll need: > http://github.com/aemoncannon/antlr-elisp/raw/c411f29743e3182523e0ad27= a9384b6c4210d55e/src/runtime/ELisp/a3el-runtime.el >=20 > I don't think the error is actually related to the content of the > file, as there are no non-ascii characters in the file, and deleting > seemingly arbitrary chunks makes the error go away. Tangentially to this, you should be aware that several of your integer constants are silently overflowing in that file. With an XEmacs with 31-b= it integers and no bignum support, the Lisp reader throws an overflow error twice for me; GNU Emacs has (IIRC) 27-bit integers on 32-bit platforms an= d doesn=E2=80=99t error on reading integers it can=E2=80=99t represent, so = more than two of your integer constants may be corrupt.=20 The constants that overflow for me are 2147483647 on line 10006 and again= on line 2291. I can work around this (though there=E2=80=99s still lots of t= hrashing when compiling the file) by using most-positive-fixnum instead, modifying #'a3el-lookahead-let-bindings to call #'symbol-value on max-k if it doesn= =E2=80=99t satisfy #'numberp. --=20 =C2=BFD=C3=B3nde estar=C3=A1 ahora mi sobrino Yoghurtu Nghe, que tuvo que= huir precipitadamente de la aldea por culpa de la escasez de rinocerontes?