From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Fri, 17 Sep 2010 18:14:13 +0200 Message-ID: <83iq241h62.fsf@gnu.org> References: <87bp805ecr.fsf@gmail.com> <87iq26z97e.fsf@uwakimon.sk.tsukuba.ac.jp> <87y6b0yi8o.fsf@uwakimon.sk.tsukuba.ac.jp> <87sk18bioh.fsf@lola.goethe.zz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284740084 26804 80.91.229.12 (17 Sep 2010 16:14:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 16:14:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 18:14:38 2010 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.69) (envelope-from ) id 1Owda9-0006zj-HL for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 18:14:37 +0200 Original-Received: from localhost ([127.0.0.1]:57898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owda8-00065Z-Lv for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 12:14:36 -0400 Original-Received: from [140.186.70.92] (port=48468 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwdZt-00060I-Oq for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:14:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwdZq-0000hl-T2 for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:14:21 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36734) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwdZq-0000hW-MR for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:14:18 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L8W00L00FO9SZ00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:14:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.210.149]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8W00LDKFRJRD40@a-mtaout21.012.net.il>; Fri, 17 Sep 2010 18:14:08 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:130333 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Fri, 17 Sep 2010 17:16:25 +0200 > > Andreas Schwab writes: > > >>>> Don't the Lisp integers use a bit for the type tag? > >>> > >>> most-positive-fixnum is a variable defined in `data.c'. > >>> Its value is 2305843009213693951 > >> > >> And by that you mean "yes" or "no"? > >> > >> (format "%x" most-positive-fixnum) > >> => "1fffffffffffffff" > >> > >> That's at least a few bits less than MAX_INT, isn't it? > > > > $ printf '#include \nINT_MAX\n' | gcc -E -xc - | tail -n1 > > 2147483647 > > You're being rather gnomic. Psst, Lars: it's pointless to ask Andreas for human-readable explanations. You won't get them. He enjoys to get you puzzled. The issue here is that EMACS_INT can be a 64-bit type (on a 64-bit host), but MAX_INT is always the maximum possible value of a 32-bit int, even on a 64-bit machine.