News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Risc-V support for CodeBlocks

Started by Udrzbar, July 25, 2019, 12:45:31 PM

Previous topic - Next topic

Udrzbar

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.

BlueHazzard

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...

Udrzbar

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.

stahta01

#3
Google and other web search engines are your friends.

One of several results.
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/

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Udrzbar

Thanks, great, I installed the one from https://gnutoolchains.com/risc-v/.
What next ? How to tell CodeBlocks to use risc-V, please ?

BlueHazzard

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..