Table of Contents

How much Lisp and C are in Emacs?

By Colin on 2023-08-15

Emacs is largely a Lisp program, but has a C core. What's the ratio of SLOC between the two languages, and how have they changed over time?

Note that:

  • C code looked for under src/.
  • Lisp code looked for under lisp/.
  • C sources in lib/ and lib-src/ are not counted (see README).
  • C header files are ignored.
  • Comment/blank lines are ignored.
Emacs VersionLines of LispLines of CRatio
29.111997753067723.91
28.211415282579814.42
27.211002372524764.36
26.310815612357914.59
25.310617232263884.69
24.510423572158304.83

Between 28 and 29 we see a 19% increase in the size of the C. I wonder what changed? Perhaps the PGTK backend?

Blog Archive