简体   繁体   中英

Concurrency in Spike/Newlib

How do I simulate concurrent programs in the Spike RISC-V ISS using newlib?

What I know is that Spike has a -p flag to simulate multiple processors, but I can't use pthreads or other such system calls since they are not part of newlib. Do I need to install the linux compiler toolchain and simulate a whole linux system for this?

You could just run FreeRTOS, either the contributed RISC-V Spike Simulator GCC port , or the official one in the case it would support spike - I am not sure it does, but it does support qemu if you don't mind using qemu instead of spike.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM