Author Topic: Risc-V support for CodeBlocks  (Read 4364 times)

Offline Udrzbar

  • Single posting newcomer
  • *
  • Posts: 3
Risc-V support for CodeBlocks
« 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Risc-V support for CodeBlocks
« Reply #1 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...

Offline Udrzbar

  • Single posting newcomer
  • *
  • Posts: 3
Re: Risc-V support for CodeBlocks
« Reply #2 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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Risc-V support for CodeBlocks
« Reply #3 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/

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.
« Last Edit: July 25, 2019, 02:34:59 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Udrzbar

  • Single posting newcomer
  • *
  • Posts: 3
Re: Risc-V support for CodeBlocks
« Reply #4 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 ?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Risc-V support for CodeBlocks
« Reply #5 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..