Get the latest tech news

How is Ultrassembler so fast?


uperfast and complete RISC-V assembler library that I'm writing as a component of the bigger Chata signal processing project. Assemblers take in a platform-dependent assembly language and output that platform's native machine code which runs directly on the processor.

Such performance ensures a good user experience on the platforms where Chata runs, but also as a consequence of this lack of overhead, you could also combine Ultrassembler with fantastic libraries like libriscv to implement low-to-no-cost RISC-V scripting in things like games, or maybe even in your JIT programming language! As a result, even if an exception triggered by a mistake took a full 1 second (about a million times slower than it does in reality), it doesn't matter because the person percepting the error message can only do so in approximately that second timeframe. However, Ultrassembler accounts for this by preemptively adding an extra null character to the input string data earlier in the code, ensuring that such illegal memory accesses are impossible by definition.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Ultrassembler

Ultrassembler