[Topic DIscussion] 使用Scratch 手搓 RISC-V 模拟器,成功运行 Linux 内核!
Tofloor
poster avatar
流浪的加菲
deepin
2023-10-18 18:05
Author

今天看到一篇新闻,虽然不是很懂,但是感觉很厉害的样子,必须分享下!

印象中Scratch一直都是中小学拿来搞编程学习的软件,拖动下模块就可以写一些趣味性很高的代码,配合Arduino、ESP32等等开发板,可玩性还是很高的,国内很多少儿编程软件都是套娃的Scratch,但是现在→→→→→→→→→→→→

scream 某大神用 Scratch 编写了 RISC-V (rv32ima) 指令集,然后将其作为模拟器运行 Linux 6.1 内核。

image.png

感兴趣的朋友自行访问:https://scratch.mit.edu/projects/892602496

image.png

另外,作者称该模拟器基于纯 C 实现的 mini-rv32ima 模拟器构建。


只要功夫深,铁杵磨成针shamed

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-10-18 18:19
#1

好家伙,这作者牛逼likescream

Reply View the author
安洛
deepin
2023-10-18 18:33
#2

Linux From Scratch(

Reply View the author
q77190858
deepin
2023-10-18 18:50
#3

我用python写过一个Risc-v模拟器,支持rv32i,能跑简单的rv32i二进制文件,没跑过linux内核

https://gitee.com/q77190858/PyRV32I

Reply View the author
neko
deepin
Ecological co-builder
2023-10-18 20:42
#4

离大谱...

Reply View the author
流浪的加菲
deepin
2023-10-18 22:02
#5
q77190858

我用python写过一个Risc-v模拟器,支持rv32i,能跑简单的rv32i二进制文件,没跑过linux内核

https://gitee.com/q77190858/PyRV32I

也是高手了like

Reply View the author
青稚
Moderator
2023-10-18 22:44
#6

厉害(ง •̀_•́)ง

Reply View the author