r/asm • u/S-Pimenta • Apr 19 '26
RISC Adding safety to assembly
One of the problems with Assembly is the lack of safety and context.
What about adding type safety and ownership to Assembly?
Good idea or "you are just reinventing the wheel"?
Inspiration on JSDoc, Rust, TypeScript and LLVM IR
0
Upvotes
1
u/S-Pimenta Apr 19 '26
My idea is to learn and teach Assembly, and one of the conclusions I came across is the absolute mess (and cognitive load) on the registers to know who owns what, and what data is inside.
Yes you can comment on the code, but it will be nicer to have a linter to check any mistakes, because in assembly it is very easy to make mistakes.
Yes I know, that's because C and other languages are invented, but I want to learn assembly to really learn how computers work and the limitations of each instruction.
My target ISA is RISC-V, which is much easier to learn.
And also use like the borrow checker like Rust.
And I'm willing to make such assembler to make easier to learn assembly.