Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
c3fa7750
Commit
c3fa7750
authored
4 years ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
Add configuration for gccemacs (native-comp, emacs28 only)
parent
6758b8c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+19
-1
19 additions, 1 deletion
configuration.org
with
19 additions
and
1 deletion
configuration.org
+
19
−
1
View file @
c3fa7750
...
...
@@ -8,6 +8,24 @@ Some of my configuration entries where borrowed from other people, see
* Performances tweaks (part. 1, start)
I am currently experimenting with Emacs 28 and, specifically,
GccEmacs that compiles elisp to native binaries. To compile emacs28
to macOs (until it is released):
1. Clone [[https://github.com/jimeh/build-emacs-for-macos][build-emacs-for-macos]]
2. Install build dependencies with =brew bundle install= in the cloned folder
3. run =./build-emacs-for-macos feature/native-comp=
4. The =Emacs.app= will be available in an archive in the =builds=
folder
This sets gcc optimization flag to =-O2= (max optimization level,
fully adherent to the langage semantic).
#+begin_src emacs-lisp
(unless (version< emacs-version "28"))
(setq comp-speed 2)
)
#+end_src
Decrease the GC frequency by setting the threshold high for
configuration loading. The threshold will be set lower at the end of
the configuration to make each GC call faster for normal emacs use.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment