From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Redundant type checking in window.c and w32menu.c Date: Tue, 19 Jun 2007 10:55:52 -0400 Message-ID: References: <4677EBCA.7020405@yandex.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182292006 3357 80.91.229.12 (19 Jun 2007 22:26:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 22:26:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 00:26:45 2007 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 1I0m9o-0003e1-H5 for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 00:26:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0m9o-0003gJ-0s for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 18:26:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0m8m-00030u-UY for emacs-devel@gnu.org; Tue, 19 Jun 2007 18:25:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0m8l-0002zr-FS for emacs-devel@gnu.org; Tue, 19 Jun 2007 18:25:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0m8l-0002zm-7o for emacs-devel@gnu.org; Tue, 19 Jun 2007 18:25:35 -0400 Original-Received: from tomts26.bellnexxia.net ([209.226.175.189] helo=tomts26-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0m8k-0004xI-Ro for emacs-devel@gnu.org; Tue, 19 Jun 2007 18:25:35 -0400 Original-Received: from ceviche.home ([70.55.143.156]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070619145553.ISBU9197.tomts10-srv.bellnexxia.net@ceviche.home> for ; Tue, 19 Jun 2007 10:55:53 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E7F00B4B9C; Tue, 19 Jun 2007 10:55:52 -0400 (EDT) In-Reply-To: <4677EBCA.7020405@yandex.ru> (Dmitry Antipov's message of "Tue\, 19 Jun 2007 18\:44\:26 +0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:73345 Archived-At: > P.S. Is code size the only reason to call Fcar(), Fcdr() and their safe > versions directly from C code ? Replacing these dumb proxies with an > appropriate macros eliminates a lot of function calls at the cost of ~28K > increment in code size (for a stripped binary on x86). No idea. > Note if someone needs smaller emacs executable (what a strange > requirement, but why not ?), just replacing -O2 with -Os saves ~235K. Interestingly enough, at some point (i.e. some combination of x86 processors and gcc versions) the -Os was the best speedwise as well (at least, it was used for many SPEC submissions). Stefan