Hello,
On Sat, Jun 21, 2008 at 4:56 AM, Chong Yidong <address@hidden> wrote:
<address@hidden> 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.)
I feel the most complicated would be the generating the emacs
executable by dumping a process with elisp code loaded
(bootstrapping). I remember when working in the OpenVMS labs, on
Itanium platform, that was the only missing piece in getting a full
blown working emacs.
-dhruva