From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1079 invoked from network); 27 Jun 2004 10:09:08 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 27 Jun 2004 10:09:08 -0000 Received: (qmail 16109 invoked from network); 26 Jun 2004 19:18:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Jun 2004 19:18:11 -0000 Received: (qmail 13560 invoked by alias); 26 Jun 2004 18:09:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20104 Received: (qmail 13550 invoked from network); 26 Jun 2004 18:09:17 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 26 Jun 2004 18:09:17 -0000 Received: (qmail 15797 invoked from network); 26 Jun 2004 19:18:03 -0000 Received: from unknown (HELO moonbase.zanshin.com) (@167.160.213.139) by a.mx.sunsite.dk with SMTP; 26 Jun 2004 19:18:01 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i5QI9CUT004665 for ; Sat, 26 Jun 2004 11:09:12 -0700 Date: Sat, 26 Jun 2004 11:09:12 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-workers@sunsite.dk To: zsh-workers@sunsite.dk Subject: Re: libzsh overhead, minus the benefits In-Reply-To: <20040625123431.GR96475@episec.com> Message-ID: References: <20040625123431.GR96475@episec.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Fri, 25 Jun 2004, ari wrote: > The only potential reason that i see for having all zsh functionality in > libzsh.so, while keeping the zsh binary more or less a stub into the > library, is the reuse of shared memory mappings. No; that has nothing to do with it. On some operating systems to which zsh has been ported, it is not possible to have dynamic (relocatable, if I recall correctly) symbol linkage from a non-dynamic library to a dynamic one. That is, it's first necessary to load at least one library via a static linkage, and then that library can load other libraries at run time. So nearly all of zsh was put into a loadable library so that the zmodload command would work, and could be programmed in nearly the same way, on all the platforms where zsh compiles.