Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The status and roadmap for RISC-V platform?

22 views
Skip to first unread message

Wei Wu (吴伟)

unread,
Jul 17, 2020, 1:28:40 AM7/17/20
to firef...@mozilla.org, dev-tech-js-en...@lists.mozilla.org
Hi,

I've noticed the spidermonkey might be ready to be built on Linux/RISC-V
[1]. I searched the bugzilla and wiki for more information and couldn't
find it. Is there a plan or roadmap for Firefox/Spidermonkey porting to
RV64G/Linux platform? I'd like to contribute to this work, making Firefox
run on RISC-V machines like Hifive Unleashed. Since Firefox is a very
complex system, I think porting spidermonkey is a good starting point for
me [2]. Would you mind give me some hints?

Thanks.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1318905
[2] I've tried to implement a few features for spidermonkey during GSoC
2013, but failed to merge into the main branch due to the performance
issues. I have some experience on JS Engines and compilers.

--
Best wishes,
Wei Wu (吴伟)

Jan de Mooij

unread,
Jul 17, 2020, 2:21:20 AM7/17/20
to Wei Wu (吴伟), Firefox Dev, JS Internals list
Hey,

It's good to hear from you again! We don't have plans for adding a JIT/Wasm
backend for RISC-V at this point. Most of SpiderMonkey (except Wasm
support) should work without it, it's just slower without JITs. Making sure
a --disable-jit build of Firefox works on RISC-V would be a good first step.

We could _potentially_ have a community-maintained JIT/Wasm backend for
RISC-V, like our MIPS code, but this would also depend on the impact to
other parts of the code base and whether the community is willing to
actively maintain it going forward.

Adding a JIT backend is a big project. We'd be happy to answer questions
and give feedback though. You can also find us in the #spidermonkey room on
Matrix [0].

Thanks,
Jan

[0] https://chat.mozilla.org/#/room/#spidermonkey:mozilla.org
> _______________________________________________
> dev-tech-js-engine-internals mailing list
> dev-tech-js-en...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>

Wei Wu (吴伟)

unread,
Jul 17, 2020, 3:00:56 AM7/17/20
to Jan de Mooij, Firefox Dev, JS Internals list
Thanks!

Got it. I'd like to have a try ;-)
Indeed, the JIT backend is too big to be a personal project.
The first milestone for RISC-V porting might be to run a single line
helloworld.js on QEMU/RV64GC which simply prints a 'hello world'.
0 new messages