From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Platform Dependent Code Date: Fri, 20 Jun 2008 19:26:48 -0400 Message-ID: <8763s3elhj.fsf@stupidchicken.com> References: <20080620101747.BMG51159@expms4.cites.uiuc.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214004710 11719 80.91.229.12 (20 Jun 2008 23:31:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 23:31:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 21 01:32:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9q5j-0003mT-SM for ged-emacs-devel@m.gmane.org; Sat, 21 Jun 2008 01:32:28 +0200 Original-Received: from localhost ([127.0.0.1]:49999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9q4u-0000aW-Vw for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 19:31:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9q4q-0000aR-JT for emacs-devel@gnu.org; Fri, 20 Jun 2008 19:31:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9q4o-0000aF-8S for emacs-devel@gnu.org; Fri, 20 Jun 2008 19:31:31 -0400 Original-Received: from [199.232.76.173] (port=42827 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9q4o-0000aC-3p for emacs-devel@gnu.org; Fri, 20 Jun 2008 19:31:30 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:40641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9q4o-00061H-6I for emacs-devel@gnu.org; Fri, 20 Jun 2008 19:31:30 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id ED90D4E47D; Fri, 20 Jun 2008 19:26:48 -0400 (EDT) In-Reply-To: <20080620101747.BMG51159@expms4.cites.uiuc.edu> (jsestri2@uiuc.edu's message of "Fri, 20 Jun 2008 10:17:47 -0500 (CDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99564 Archived-At: writes: > How much of emacs is platform dependent code? I am wondering how much > code has to be replaced if you wanted to port emacs to a new platform > essentially: How much of emacs is native c code / libraries and how > much is done through lisp code? Almost all the platform-dependent code is in C and concerns terminal/window system communications. See the w32* and mac* files in the source tree for an example. The rest of the work is a matter of juggling compilation switches, identifying system call names, etc. (If you provide some information about what platform you are interested in, maybe someone could be more helpful.)