Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Add custom instructions to riscv-elf-toolchain #782

Closed
rahulraveendran15-coder opened this issue Nov 23, 2020 · 2 comments
Closed
Labels

Comments

@rahulraveendran15-coder

Hi,

I want to implement some custom instructions on riscv-architecture to speed up my process.
How can I add the custom instruction to the tool chain, so that on compilation it can get new instructions. Is it possible to add custom instructions to riscv-elf-tool chain? I am not finding any respective documents/reference for this

@jim-wilson
Copy link
Collaborator

You can find gcc info at gcc.gnu.org. There are some tutorials there under the "pointers" link but I'm not sure how good they are.

I've given brief overviews of the process in various places. Here is one for instance
https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/sL_OHXYj3LY/m/Gsm6sBc9BQAJ

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Nov 10, 2022

This is a list of all issues logged that I can find that relate to adding new instructions to the toolchain:

At this stage in the evolution of RISC-V,the majority of instruction addition will be done under the auspices of the relevant groups working on standardising, prototyping, and implementing/enhancing RISC-V extensions and their corresponding instructions. As such, there should be less of a demand for others to do so.

However, where somebody still wants to implement a non standard custom extension/instruction here are some useful resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants