PULP Community

Full Version: Add custom instruction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I downloaded pulp riscv gnu toolchain and pulp sdk. I there a way to add a custom instruction to the riscv cross compiler?
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.