From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dhruva Krishnamurthy Newsgroups: gmane.emacs.help Subject: Re: Using undumped Emacs Date: Wed, 09 Mar 2005 09:16:31 +0530 Organization: RBIN Message-ID: References: <7ezmy1bh71.fsf@ada2.unipv.it> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110340229 18985 80.91.229.2 (9 Mar 2005 03:50:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2005 03:50:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 04:50:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8sDC-00064z-2Q for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Mar 2005 04:50:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8sRn-0005UN-6V for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2005 23:05:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news0.de.colt.net!news1.boschrexroth.de!news1.fe.internet.bosch.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 173.148.8.2 Original-X-Trace: ns2.fe.internet.bosch.com 1110340022 21530 173.148.8.2 (9 Mar 2005 03:47:02 GMT) Original-X-Complaints-To: usenet@internet.bosch.com Original-NNTP-Posting-Date: 9 Mar 2005 03:47:02 GMT X-Attribution: dk User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:JPAwW1kUTNF8eJtyyj8QszcVkWY= Original-Xref: shelby.stanford.edu gnu.emacs.help:129118 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24668 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24668 >>>>> On Wed, 9 Mar 2005 02:04:28 +0000 (UTC), dkcombs@panix.com (David Combs) said: dc> In article <7ezmy1bh71.fsf@ada2.unipv.it>, dc> Thien-Thi Nguyen wrote: >> Greg writes: >> >>> I do: ./temacs -l loadup >> >> you can try: >> >> TERM=vt100 ; ./temacs -l loadup >> >> this is not optimal but if you are inclined, it makes further debugging >> easier. under vms, for example, i always specify "vt100" while running >> undumped emacs. dc> What is an "umdumped" emacs? I am making an attempt to explain one of the most complex part in emacs build, I request the emacs gurus to correct me if I am wrong. I am assuming that you have not built emacs from sources. When you build emacs from source, it first makes a bare emacs binary with out any lisp code loaded or embedded in it. You might be aware that pure emacs with no elisp code is dumb in terms of an editor or a useful application. The next phase in the build it to run this raw or pure or undumped emacs called temacs (.exe on Win32 platform) by loading the elisp files which are absolutely necessary using the "-l loadup" option. There is a "loadup.el" which has all the other lisp code that needs to be loaded to get a useful/working emacs. When this happens, the running temacs process will load all the required elisp code. The final phase is to dump that memory contents of temacs with elisp code loaded into another executable called "emacs" (.exe on Win32). This new executable will have all the necessary elisp code in the executable and hence will be much faster at startup than running "./temacs -loadup". This phase of dumping the temacs process into an emacs executable is _most_ system dependent. XEmacs has done some progress in generalizing this concept. I hope I have conveyed the facts (this is to the best of my knowledge). -dhruva -- Name : Dhruva Krishnamurthy (dk) Phone: +91-(0)80-22999190 Proud FSF member: #1935