Settings

Theme

LLVM Back End for MoonBit

moonbitlang.com

24 points by hongbo_zhang a year ago · 19 comments

Reader

hongbo_zhangOP a year ago

MoonBit supports the LLVM backend. With this, it achieved 8× Java’s performance in FFT and introduced out-of-the-box debugging with DWARF symbol injection, enabling precise source mapping directly to compiled outputs.

MoonBit will soon compile directly to native binary files without relying on a C compiler. This eliminates various compatibility issues associated with C compilers.

techblaze3 a year ago

I assume there was a C backend before — some numbers comparing that and the wasm backend with LLVM would’ve been helpful."

  • hongbo_zhangOP a year ago

    The LLVM mode currently is not good as C backend, but we are working on it to bring it comparable to C backend

kukiTsui a year ago

It's great to see MoonBit adopt llvm, but is it relying on a c compiler or independent?

  • hongbo_zhangOP a year ago

    we used to output C for native backend support

  • TitanShift a year ago

    "Once support for distributing precompiled runtime libraries is implemented, MoonBit programs will be completely independent of the C compiler, generating native executables using only a linker."

tech_peter01 a year ago

Wonder how the LLVM backend affects compile times. Anyone tried it yet?

  • hongbo_zhangOP a year ago

    it is not the optimial, for fast native mode, we rely on tcc for fast interpretion

chenhoey1211 a year ago

How does MoonBit’s LLVM backend compare to Zig or Rust?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection