|
|
|
|
|
by kragen
845 days ago
|
|
i'm probably not a good person to give advice on this, but what i've been doing is installing the cross-compilation gcc environment under debian and qemu-user. this allows me to build statically linked executables and run them as if they were native executables, and also to disassemble the executables and object files with riscv64-linux-gnu-objdump (though it produces incorrect output for instructions like addi and slli, it's good enough to see what's going on) specifically i installed gcc-riscv64-linux-gnu and qemu-user-binfmt also i read the risc-v spec and assembly programming manual i also got some risc-v single-board computers but haven't done anything with them yet i haven't been doing anything with the v extension, which i think is the most widely supported simd-like extension; though it's not exactly simd, it offers the same kinds of benefits for the same kinds of applications |
|
The assembler accepts either syntax:
Also, objdump will print them as `addi` if you give the `-Mno-aliases` option.