3 ms·
LLVM Back End for MoonBit
- hongbo_zhang 2y agoMoonBit 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.
- code_mary22 2y agoDoes this mean MoonBit will get JIT support soon?
- hongbo_zhang 2y agowe have a interpreter mode which takes advantage of tcc for fast interpretion
- ftbsqcfjm 2y ago[dead]
- chenhoey1211 2y agoHow does MoonBit’s LLVM backend compare to Zig or Rust?
- lingying 2y ago[dead]
- 16603366004 2y ago[dead]
- tech_peter01 2y agoWonder how the LLVM backend affects compile times. Anyone tried it yet?
- hongbo_zhang 2y agoit is not the optimial, for fast native mode, we rely on tcc for fast interpretion
- yuzongen1234 2y ago[dead]
- Peakpeakflier 2y ago[dead]
- techblaze3 2y agoI assume there was a C backend before — some numbers comparing that and the wasm backend with LLVM would’ve been helpful."
- lingying 2y ago[dead]
- hongbo_zhang 2y agoThe LLVM mode currently is not good as C backend, but we are working on it to bring it comparable to C backend
- kukiTsui 2y agoIt's great to see MoonBit adopt llvm, but is it relying on a c compiler or independent?
- TitanShift 2y 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."
- hongbo_zhang 2y agowe used to output C for native backend support
- deleted 2y ago[deleted]
- k_8HjR2mN5 2y ago[dead]