From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs overflowed pure space Date: Wed, 19 Jul 2006 18:22:44 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <7dbe73ed0607180138x35e9d9bft3e42f20cb369795c@mail.gmail.com> <200607181929.k6IJTZN9028639@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1153301007 2776 80.91.229.2 (19 Jul 2006 09:23:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jul 2006 09:23:27 +0000 (UTC) Cc: emacs-devel@gnu.org, Luc Teirlinck , ralphm@members.fsf.org, mathias.dahl@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 19 11:23:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G38Go-0001tZ-0L for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2006 11:23:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G38Gn-0003EG-32 for ged-emacs-devel@m.gmane.org; Wed, 19 Jul 2006 05:23:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G38Gb-0003Dq-OJ for emacs-devel@gnu.org; Wed, 19 Jul 2006 05:22:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G38GZ-0003DI-8q for emacs-devel@gnu.org; Wed, 19 Jul 2006 05:22:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G38GZ-0003DB-5W for emacs-devel@gnu.org; Wed, 19 Jul 2006 05:22:51 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G38Jc-00013U-MT; Wed, 19 Jul 2006 05:26:01 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 365292CB4; Wed, 19 Jul 2006 18:22:44 +0900 (JST) Original-To: rms@gnu.org In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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:57328 Archived-At: >>>>> On Wed, 19 Jul 2006 02:04:54 -0400, Richard Stallman said: > I don't quite follow. Why does the redefinition made by cl.el alter > the size of the expansion of these macro calls? The major difference seems to come from the length of the uninterned symbol name that is allocated for each expanded `dolist'. static POINTER_TYPE * pure_alloc (size, type) size_t size; int type; { POINTER_TYPE *result; #ifdef USE_LSB_TAG size_t alignment = (1 << GCTYPEBITS); #else size_t alignment = sizeof (EMACS_INT); The length of the name of '--dolist-temp-- (in subr.el) is 15, and it takes 2 units in 8(== (1 << GCTYPEBITS))-byte block including the terminating nul char. On the other hand, the name of '--cl-dolist-temp-- takes 3 units. Here's the result of some experiments: Dumped with dolist in subr.el: 1209808 bytes used dolist in cl.el: >1211000 bytes used (overflow) dolist in cl.el with the modification '--cl-dolist-temp-- -> '--dolist-temp-- : 1209832 bytes used YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp