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

Customize gcc for p extension #14

Open
quannh41-git opened this issue Aug 8, 2022 · 3 comments
Open

Customize gcc for p extension #14

quannh41-git opened this issue Aug 8, 2022 · 3 comments

Comments

@quannh41-git
Copy link

Hi linsinan,

I am a newbie in gcc toolchain. I have found your repo about adding RISC-V P extension and I want to customize my toolchain. I start to follow you with riscv-gcc/gcc/config/riscv directory and modify some files to add "add8" instruction. However, when I built toolchain, I failed on stage 1. This was failed due to error "cannot compute suffix of object files", so recipe for target configure-target-libgcc failed.

I dont know why?

Could you share me some steps to add instructions of P-extension to GCC?

Thank you.

@linsinan1995
Copy link
Owner

I haven't encountered this error before. Did you use the riscv-toolchain to build and did you use the wrong configuration (see https://gcc.gnu.org/wiki/FAQ#configure_suffix)?

@quannh41-git
Copy link
Author

Hi Lin Sinan,

I have use your riscv-binutils (support p extension) and riscv-gcc (version 10.2) within riscv-toolchain that you mentioned above to build toolchain. I use this toolchain to compile some instructions of P such as add8.S, add16.S, ... and they can compile it smoothly to binary file.
But I dont know why riscv-gcc (v10.2) not support p extension can compile instructions of P extension?

Thank you!

@ByeBeihai
Copy link

Hi Lin Sinan,

I have use your riscv-binutils (support p extension) and riscv-gcc (version 10.2) within riscv-toolchain that you mentioned above to build toolchain. I use this toolchain to compile some instructions of P such as add8.S, add16.S, ... and they can compile it smoothly to binary file. But I dont know why riscv-gcc (v10.2) not support p extension can compile instructions of P extension?

Thank you!

hello, I meet the same problem of you. Could you please share your solution or compiled toolchain? I have no idea about where to find the "riscv-binutils(support p extension)".
thanks a lot!

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

No branches or pull requests

3 participants