From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: How can I put together a small bare bones "Emacs for scripting" package? Date: Sat, 25 Jan 2020 21:12:04 +0100 Message-ID: References: <83o8usrh1k.fsf@gnu.org> <83lfpwrfol.fsf@gnu.org> <83blqsq8yb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000922bca059cfc7dc0" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53092"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 25 21:12:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivRnd-000Dmj-Tc for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jan 2020 21:12:57 +0100 Original-Received: from localhost ([::1]:57262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivRnc-0002gx-SK for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jan 2020 15:12:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51232) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivRn2-0002G2-OT for emacs-devel@gnu.org; Sat, 25 Jan 2020 15:12:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivRn1-0007oG-JR for emacs-devel@gnu.org; Sat, 25 Jan 2020 15:12:20 -0500 Original-Received: from mail-ua1-x931.google.com ([2607:f8b0:4864:20::931]:36438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivRmz-0007hP-6l; Sat, 25 Jan 2020 15:12:17 -0500 Original-Received: by mail-ua1-x931.google.com with SMTP id y3so2091920uae.3; Sat, 25 Jan 2020 12:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x1Fnp4UOxM6fgVeBwIW2N17nh5mzwQrENQcEncotZIQ=; b=T9ln+6lc9IxqM6LdvkhSwfMS91KstWYcfZc0I99W4rC1/1EiHoBU6FyYDgEwlR58CP KmrI2hEYIAMKLslhe/w09xXHPHG+X0/RZ8XK0mTOUWYIf6JLvANjAqXvusElmpTY2w5O JzvU6+au9Kzg+7XfJUDJ/3C9IZsKDR8/ls+YVKgP0RV5WletF2JY0COXzPX3/LiP+7ef GoJfK9cf+BJuw67Z6r3en7g8mvLwryG4eoze7cjOiNMJUrlCL7GrqBqMMpD35YT2aj8P Dk5xykrPfINiT0WlllqJegHJEhmzP4Umu2WahexiGcVP2KHZ17Ffnk3dBRfvpp2sAn2p NeDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x1Fnp4UOxM6fgVeBwIW2N17nh5mzwQrENQcEncotZIQ=; b=jxTZ/EuHd1v5JrWzAYVb82gAwA6Esfn8Sx7RmDqVljq735ByAgcbBVc3E/YH9crbRT tkHvP9zDJTMCq+9kutGzAlhgiiz8bhiGGjToe4TklYAh6NpIcHyepWOhaWz7yvDAQ3Ct 0kCvAgzJ7lHv6w5oSHv2PWiq3cJEBpOLO+YjVxocoBfCU2LQhX/8soex4HG+5PDePYvn 7Rzf1oXv+Mpqw1OBREvdjCPR2djplfbUei5t1663m1u426nVOKg3ZsYE590GSnoWJxhZ G3JJX8wwTRmx8IuqaMbKsLer9lVhi/ig1y0yL6RdfFuUXUwaWVaULuip2XUomVepBtgT Q5QQ== X-Gm-Message-State: APjAAAVEhgAj0btjHGV9Hps8CRWBJsICHnPVwTAtnTZONXSCqfF69mpe GCLgsGlfvX6rbQUfni2p2MFDq/F785CDJaSnb6jGP0GgVKhuEg== X-Google-Smtp-Source: APXvYqwsHm4apxztbR7495zSTQrzZXEtCkxwLmblWIqZkECKaKBOotoRePhTSyARCyAxI5+fPl/+6l22JGEjs97CLqg= X-Received: by 2002:a9f:2635:: with SMTP id 50mr5786574uag.2.1579983135975; Sat, 25 Jan 2020 12:12:15 -0800 (PST) In-Reply-To: <83blqsq8yb.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::931 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244636 Archived-At: --000000000000922bca059cfc7dc0 Content-Type: text/plain; charset="UTF-8" > > > One thing that I noticed is the HUGE difference in size of the exe file > between Emacs 24 and later versions. I > > listed the sizes of the folder when I keep my different Emacs versions: > > > > 8.8M ./emacs-24.5-official/bin/emacs.exe > > 91M ./emacs-25.1-2-x86_64-w64-mingw32_2016_11_16/bin/emacs.exe > > 119M ./emacs-26.1-x86_64/bin/emacs.exe > > 120M ./emacs-26.2-x86_64/bin/emacs.exe > > 130M ./emacs-26.3-x86_64/bin/emacs.exe > > 16M ./emacs-bin-w64-24.4/emacs/bin/emacs.exe > > 121M ./emax64-bin-20180529/emax64/bin/emacs.exe > > 119M ./old/emacs-26.1/bin/emacs.exe > > The small ones are stripped, the large ones are with debug info. If > you have the 'strip' command (from Binutils) installed, you can strip > the large ones as well. > Ah, makes sense. I tried three different versions of MingW and binutils/strip until I found one that did not fail :) Now I have an emacs.exe (emacs-26.3-x86_64-no-deps, from the official Gnu download location) that is 30 MB in size instead of 132 MB :) And, it still seems to work. Thanks a lot! /Mathias --000000000000922bca059cfc7dc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> One thing that I noticed is the HUGE difference in = size of the exe file between Emacs 24 and later versions. I
> listed the sizes of the folder when I keep my different Emacs versions= :
>
> 8.8M=C2=A0 =C2=A0 ./emacs-24.5-official/bin/emacs.exe
> 91M=C2=A0 =C2=A0 =C2=A0./emacs-25.1-2-x86_64-w64-mingw32_2016_11_16/bi= n/emacs.exe
> 119M=C2=A0 =C2=A0 ./emacs-26.1-x86_64/bin/emacs.exe
> 120M=C2=A0 =C2=A0 ./emacs-26.2-x86_64/bin/emacs.exe
> 130M=C2=A0 =C2=A0 ./emacs-26.3-x86_64/bin/emacs.exe
> 16M=C2=A0 =C2=A0 =C2=A0./emacs-bin-w64-24.4/emacs/bin/emacs.exe
> 121M=C2=A0 =C2=A0 ./emax64-bin-20180529/emax64/bin/emacs.exe
> 119M=C2=A0 =C2=A0 ./old/emacs-26.1/bin/emacs.exe

The small ones are stripped, the large ones are with debug info.=C2=A0 If you have the 'strip' command (from Binutils) installed, you can str= ip
the large ones as well.

Ah, makes sense= .=C2=A0

I tried three different versions of MingW = and binutils/strip until I found one that did not fail :)=C2=A0
<= br>
Now I have an emacs.exe (emacs-26.3-x86_64-no-deps, from the = official Gnu download location) that is 30 MB in size instead of 132 MB :) = And, it still seems
to work.

Thanks a lo= t!

/Mathias

--000000000000922bca059cfc7dc0--