Cross compiling node.js for microblaze

241 views
Skip to first unread message

Simon Vincent

unread,
Jul 8, 2014, 3:22:09 PM7/8/14
to nod...@googlegroups.com
Will node.js work on other hardware platforms other than X86 and ARM? 
If I managed to get it to compile for microblaze would it work or would I be wasting my time?

Thanks

Simon

Ben Noordhuis

unread,
Jul 9, 2014, 11:17:21 AM7/9/14
to nod...@googlegroups.com
Just making it compile won't do you much good. V8 (the JS engine) is
a run-time code generator. You would have to teach it the MicroBlaze
instruction set and that's no easy task. For comparison, the MIPS
back-end is 34 kLoC spread across 30+ files.

mog...@syntheticsemantics.com

unread,
Jul 10, 2014, 12:02:04 AM7/10/14
to nod...@googlegroups.com
Hi Simon,

I looked into a different approach of putting JS on a FPGA by writing a JS interpreter in a high-level-language to VHDL toolchain.  Sadly, the low clock speed of the FPGA makes interpreting JS painfully slow and it was impractical.  Dealing with timed logic and I/O also proved to be outside what was possible with callbacks alone.  

The good news is tiling dozens of cores seemed perfectly reasonable.

         -J

Simon Vincent

unread,
Jul 10, 2014, 3:31:33 PM7/10/14
to nod...@googlegroups.com
Thanks for the info. I think I will have to give node.js a pass on the microblaze. It looks far too much work!

Regards


--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/a194b276-9cb4-4d20-855f-8b810bf0c3ca%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages