News for hackers. Stuff that matters.
Re:Bringing GNU Emacs to Native Code (2020) by rurban on Sunday May 02, 2021 @03:22AM (#27013024)
By not supporting LLVM JIT it gains a lot of significant advantages:

Small jit dependency. 1MB compared to 30MB.

Fast JIT. At least 3x faster than llvm.

All architectures. LLVM only supports a tiny amount of architectures, gccjit all.

Only the desperate do llvm jitting.

Re:Bringing GNU Emacs to Native Code (2020) by wyuenho on Sunday May 02, 2021 @03:48AM (#27013151)
Besides ARM and AMD64, what other arch do you need to support? RISC-V?

I'm using MacPorts and I have no idea how to hand compile just libgccjit there. The libgcc port doesn't even produce the jit language.

Re:Bringing GNU Emacs to Native Code (2020) by riffraff on Sunday May 02, 2021 @09:20AM (#27015059)
I think you want to do

    port install emacs-devel +nativecomp
or

    port install emacs-app-devel +nativecomp
Re:Bringing GNU Emacs to Native Code (2020) by jonnycomputer on Sunday May 02, 2021 @09:38AM (#27015188)
I did this last night. It failed to compile. OSX 10.14. Frustratingly.
Re:Bringing GNU Emacs to Native Code (2020) by riffraff on Sunday May 02, 2021 @12:02PM (#27016353)
I'm on macOS 11.2.3 (20D91) and it worked fine, though it took a while to compile since there were no binaries.

You may try to report a bug[0] for Mojave but I wouldn't hold my breath.

[0] https://trac.macports.org/wiki/MojaveProblems

Re:Bringing GNU Emacs to Native Code (2020) by sanxiyn on Sunday May 02, 2021 @09:01AM (#27014929)
That's a MacPorts problem. Debian has libgccjit0 package for example. In due time, MacPorts will also package gccjit.
Re:Bringing GNU Emacs to Native Code (2020) by rurban on Sunday May 02, 2021 @09:15AM (#27015017)
Google helps: https://gist.github.com/AllenDang/f019593e65572a8e0aefc96058...

Macports has gccjit since gcc10, just somebody needs to update Emacs.

What others archs? All of course

Re:Bringing GNU Emacs to Native Code (2020) by wyuenho on Sunday May 02, 2021 @10:20AM (#27015538)
Google should also help you understand that the libgcc port does not provide for libgccjit for whatever reason.

I'm writing my own Portfile to get libgccjit 11 now. The emacs-devel port does bring in the entire gcc10, but I just want libgccjit.