In the article there is a link to an earlier post with a RISC-V assembler (I think written by the same author), which generates the actual machine code