From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Mundell Newsgroups: gmane.emacs.devel Subject: Re: Compiling byte code to native Date: 02 Jun 2004 17:30:14 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87pt8hvs6h.fsf@sno.mundell.ukfsn.org> References: <87u0xuuqvm.fsf@sno.mundell.ukfsn.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086194200 14226 80.91.224.253 (2 Jun 2004 16:36:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2004 16:36:40 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 02 18:36:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVYdD-0007lU-00 for ; Wed, 02 Jun 2004 18:30:23 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVYdC-0004dI-00 for ; Wed, 02 Jun 2004 18:30:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVYdU-0003hK-S4 for emacs-devel@quimby.gnus.org; Wed, 02 Jun 2004 12:30:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVYdS-0003fl-ET for emacs-devel@gnu.org; Wed, 02 Jun 2004 12:30:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVYdR-0003f2-M5 for emacs-devel@gnu.org; Wed, 02 Jun 2004 12:30:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVYdR-0003ez-JP for emacs-devel@gnu.org; Wed, 02 Jun 2004 12:30:37 -0400 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BVYd7-00058q-1u for emacs-devel@gnu.org; Wed, 02 Jun 2004 12:30:17 -0400 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 7ED3AE6D3C; Wed, 2 Jun 2004 17:29:01 +0100 (BST) Original-Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01981-04; Wed, 2 Jun 2004 17:29:01 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org (dsl82-163-187-89.as15444.net [82.163.187.89]) by mail.ukfsn.org (Postfix) with ESMTP id 38F5BE6D35; Wed, 2 Jun 2004 17:29:01 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org ([10.0.0.3]) by sno.mundell.ukfsn.org with esmtp (Exim 3.36 #1 (Debian)) id 1BVYd5-0000L2-00; Wed, 02 Jun 2004 17:30:15 +0100 Original-To: Stefan Monnier In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24407 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24407 Stefan Monnier writes: > > The native compilation effort introduced earlier this year is archived > > at http://www.mundell.ukfsn.org/native. It can now compile all the > > byte codes. > > The speedups are disappointing, but I'm not surprised: most byte-code > operations end up calling non-trivial C functions. > > Maybe the results would be a bit more encouraging if you tried to compile > lexbind byte-code (where local variables are kept on the byte-code stack > rather than being varbound&varref'd). This would be quite similar to compiling to a primitive, where the arguments will have to be lexically scoped. It may show an improvement over the standard byte-code, but the lexbind byte-code may show a similar improvement.