The OpenRISC architecture supports multicore implementations. The or1k-elf
toolchain is a toolchain that can execute code on multiple cores in a symmetric fashion.
If you build the toolchain manually, you should use a different prefix, such as /opt/toolchains/or1k-elf-multicore
and you need to build newlib with the environment variable CFLAGS="-D__OR1K_MULTICORE__"
:
../newlib/configure --target=or1k-nonemc-elf \
--prefix=$PREFIX \
CFLAGS_FOR_TARGET="-D__OR1K_MULTICORE__"
Pre-Compiled Toolchain
You can install pre-compiled toolchains and install them on your Linux system. We have prebuilt-toolchains for releases of the different components that are preferably installed to /opt/toolchains/or1k-nonemc-elf
. You can find some older multicore releases here. The latest ones being:</p>
After downloading a release you can extract it anywhere in your filesystem, preferable to /opt/toolchains/or1k-nonemc-elf/
. You need to add the toolchain to your path:
export PATH=/opt/toolchains/or1k-nonemc-elf/bin:${PATH}