Add custom instruction
#1
I downloaded pulp riscv gnu toolchain and pulp sdk. I there a way to add a custom instruction to the riscv cross compiler?
Reply
#2
This is more a GCC than a PULP question. One way is that you study the pulp-riscv-gnu-toolchain code by looking how we added one instruction such p.lw. In general you need to add it to the gnu binutils table so that the assembler nows about it. Then you need to teach gcc about your instruction, this is much harder. There is no easy way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)