Bare metal programming with RISC-V guide (2023)

(popovicu.com)

24 points | by todsacerdoti 5 days ago ago

2 comments

  • dlcarrier 41 minutes ago

    Playing around with assembly language on a RISC CPU is pretty fun, because there's only a few instructions to keep track of. Assembly language is like a puzzle game, with discrete values for the size and runtime of every instruction, making it easy to compare execution strategies and choose the best one. Something like AMD64 has so many instructions that it's difficult to figure out when to use each specific variation, let alone what resources they use. RISC, on the other hand makes everything straightforward.

    Treating every programming task like a speed run challenge isn't particularly productive, so playing around with it theoretically doesn't provide a useful skill, but for the tasks where resource usage does matter that much, hand written Assembly language really does shine.

  • sylware 5 days ago

    Everything RISC-V is kewl.