Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Udrzbar on July 25, 2019, 12:45:31 pm

Title: Risc-V support for CodeBlocks
Post by: Udrzbar on July 25, 2019, 12:45:31 pm
Hi all,
any idea when GCC compiler for Risc-V option will be added to CodeBlocks Settings ?
I really would like to start working with that chip using great GUI.
Title: Re: Risc-V support for CodeBlocks
Post by: BlueHazzard on July 25, 2019, 01:08:27 pm
You can add any option and gcc you want. You do not have to whait.
If you tell us what you need, we can help you to say where to add the option...
Title: Re: Risc-V support for CodeBlocks
Post by: Udrzbar on July 25, 2019, 01:16:59 pm
OK, thanks.
So first where to get binaries for gcc and gdb which would run on Windows and generate risc-v code ?
Anything else required ?
How to set up CodeBlocks so that it uses those for development.
Thanks in advance.
Title: Re: Risc-V support for CodeBlocks
Post by: stahta01 on July 25, 2019, 02:31:49 pm
Google and other web search engines are your friends.

One of several results.
https://www.lowrisc.org/docs/untether-v0.2/riscv_compile/ (https://www.lowrisc.org/docs/untether-v0.2/riscv_compile/)

Edit: Second link added
https://www.emdalo.com/posts/risc-v-gnu-compiler-toolchain-howto-compile-on-windows/ (https://www.emdalo.com/posts/risc-v-gnu-compiler-toolchain-howto-compile-on-windows/)

Edit2: Third link added
https://gnutoolchains.com/risc-v/ (https://gnutoolchains.com/risc-v/)

Tim S.
Title: Re: Risc-V support for CodeBlocks
Post by: Udrzbar on July 25, 2019, 04:01:40 pm
Thanks, great, I installed the one from https://gnutoolchains.com/risc-v/.
What next ? How to tell CodeBlocks to use risc-V, please ?
Title: Re: Risc-V support for CodeBlocks
Post by: BlueHazzard on July 25, 2019, 05:32:26 pm
if it is a normal gcc then you can simply copy the gcc compiler in Settings->Compiler and set the paths in the executable tab... All should work out of the box..