From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Fri, 16 Feb 2018 16:52:33 +0100 Message-ID: <87tvuhc4ou.fsf@gmail.com> References: <83o9kpe402.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518796301 23356 195.159.176.226 (16 Feb 2018 15:51:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2018 15:51:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: Andy Moreton , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 16 16:51:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emiIF-00051T-LO for ged-emacs-devel@m.gmane.org; Fri, 16 Feb 2018 16:51:23 +0100 Original-Received: from localhost ([::1]:34405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emiKH-00079e-R1 for ged-emacs-devel@m.gmane.org; Fri, 16 Feb 2018 10:53:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emiJW-000792-2o for emacs-devel@gnu.org; Fri, 16 Feb 2018 10:52:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emiJS-0006Xl-VS for emacs-devel@gnu.org; Fri, 16 Feb 2018 10:52:42 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emiJS-0006WX-Or for emacs-devel@gnu.org; Fri, 16 Feb 2018 10:52:38 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id 141so3901341wme.3 for ; Fri, 16 Feb 2018 07:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version; bh=2IurmH6g0Kmw6JPn0TmxxqfjAg9bId03JQ5cZUFPurA=; b=ufaD4p3AVsMb4AbmZ/vEN9yrhzIPyPOEWf/1N2kS5e3csid9a8S8nUEx52Vs3/XAJN KtMDylemypYoZtg8DiG7sK8v8Cb6c4pEfbw+LskZSmCjSvfg0kpwpWYJ/agu+GFMSZ9L 5dj/umo57kg15Zn/4TDeMtayzkYhW0zaBh3N/ZevGXyrSwHCnESr6Fmuk48Xbr9TU0bn h+1bVDEoYDF0a9IBaEZ+W8LTjo65qjjnzpVQigMyS//w9WFe28Ym8PRx3BMevp+XxVM0 dj7VbqBowizHNJuMCLsyqL2xoj90mh5SOHutZb75mp2mDkahh7NEechGMFdfp9aY/QZ8 j0zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version; bh=2IurmH6g0Kmw6JPn0TmxxqfjAg9bId03JQ5cZUFPurA=; b=Judjym7W9jT4Se/Y5DVUZeqe25VUWWyv+fgBfAwvURP7NxQXJ+UuNgEEtPLcsqkQCJ 6X3wuPuWb6DtkzjCMhaMBP467rfdmXTNtnNm+68pR+zrHwCULhXeLmx435u31RZ0aezM eTp/C+unOh9RG1Pdtb2UoN0jyL4/rK62ZYN+adCEl+FQNtQOnMfzYT5GAiDnGLRtKA+E ZLTvYMxPxHHjOvUQcf0PiFQdLo3asGiyq1JdAOMewe3SLGWTVHWwkzWhex1meABg3l4G /svqFco1nCL1s4TEeHe9RHUPY4QwfoRGn69csvgFvgJC+2/vevex9KYqxEQHaboReywt ynkA== X-Gm-Message-State: APf1xPB2fjUQYYV85G/+d5uyq/zAb1WC8BNltaoJNsatGyjMuQdGZFDt KfXF3b98i0SIAX/GDg2R3nZiGksv X-Google-Smtp-Source: AH8x226cPI5CPdu9ZHty3oWSPAzAgWz0SQe8+eVB+0+HciAWUFvNTsK23clg8z5EPD1fBXO3yi6pTg== X-Received: by 10.28.249.18 with SMTP id x18mr5180614wmh.49.1518796356983; Fri, 16 Feb 2018 07:52:36 -0800 (PST) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id w104sm18897603wrb.33.2018.02.16.07.52.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 07:52:36 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Daniel Colascione's message of "Fri, 16 Feb 2018 07:15:09 -0800") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222819 Archived-At: Daniel Colascione writes: > > We do need to avoid platform-specific executable file manipulation and > weird runtime hacks. There are three options on the table: > > 1) Keeping the dump as a separate file, > 2) Appending the dump to the end of the executable, and > 3) Overwriting a data-section array with the dump contents. If I remember correctly, XEmacs chose option (1), but that was a long time ago. If we implement that, nothing prevents us from adding option (2) later. Later builds that implement (2) would then simply not provide the dump file separately, and once it's shown to work reliably the code for (1) could be removed (or (1) and (2) could be swapped). Option 3 seems less flexible, plus as someone mentioned it would be nice to able to redump your own emacs, which could run into a limitation of the size of the data section. Robert