Ultrassembler: A Blazingly Fast RISC-V Assembler Library
Ultrassembler is a super-fast RISC-V assembler library, achieving speeds over 10 times faster than GNU as and 20 times faster than llvm-mc. This incredible performance is due to a combination of optimizations: leveraging C++ exceptions (zero-overhead in ideal cases), employing efficient data structures, using pre-allocated memory pools to eliminate syscalls, and implementing value speculation, clever search algorithms, compile-time templates, and code generation. These optimizations not only improve user experience but also open possibilities for low-cost RISC-V scripting in applications like games or JIT compilers.
Read more