Table of contents

DISCARDED

GCC emacs

%3 cluster_3aaf2757_25c9_40dd_ba78_bdc7119b09bd GCC emacs cluster_963745d4_5dff_4020_bb49_8bc8182cc5b5 Articles _fc36185c_6fc5_4ad1_bb60_8db15b93b25e Bringing GNU Emacs to native code _385801a3_f186_4e17_9983_920b01f95e3c Testing it _aa29be89_70e7_4465_91ed_361cf0ce62f2 Emacs __0:cluster_3aaf2757_25c9_40dd_ba78_bdc7119b09bd->_aa29be89_70e7_4465_91ed_361cf0ce62f2

DONE

Testing it

DIRECTORY=~/repos/gccemacs

       git clone -b feature/native-comp --depth=1 \
           --recurse-submodules \
           https://git.savannah.gnu.org/git/emacs.githttps://git.savannah.gnu.org/git/emacs.git $DIRECTORY

       cd $DIRECTORY

  • Build it

CPUNUM=`cat /proc/cpuinfo |grep processor|wc -l`

       ./autogen.sh && \
       ./configure --with-json --with-nativecomp && \
       make -j$CPUNUM

  • Other relevant `--with` flags can be found using ./configure --help|grep with, for example

CPUNUM=`cat /proc/cpuinfo |grep processor|wc -l` && ./autogen.sh && ./configure --with-json --with-nativecomp --with-imagemagick && make -j$CPUNUM

  • Run it

./src/emacs

  • If it looks good, wrap it to be called from the $PATH

cat << _EOF_ >  ~/.local/bin/emacs-native
       #!/bin/sh

       cd `pwd`
       exec src/emacs "$@"
       _EOF_

       chmod +x ~/.local/bin/emacs-native