Re:A virtual machine for microcontrollers
by tyingq on Tuesday June 01, 2021 @09:02AM
(#27353745)
He does offer a few indirect references as to why running V8 on a microcontroller would suck. Like the section on polymorphic inline cache for method resolution.
[ Parent
| on HN ]
Re:A virtual machine for microcontrollers
by zozbot234 on Tuesday June 01, 2021 @09:08AM
(#27353813)
Running V8 implies JIT and there is no JIT on most microcontrollers because they're based on Harvard architecture where no code can be written in data memory.
A large number of microcontrollers are ARM based, which isn't Harvard architecture. I presume the thinking is that there's some massive number of Harvard architecture chips in mundane things that lets us say "most" are Harvard arch?
ARM Cortex-M is a harvard architecture microcontroller. What ARM Cortex-M has in common with ARMv8 are the letters "ARM".
Re:A virtual machine for microcontrollers
by zozbot234 on Tuesday June 01, 2021 @09:41AM
(#27354306)
Some Cortex-M cores are described as Von Neumann. It varies by specific sub-architecture within Cortex M.
"Modified" Harvard though. The M0 has unified main memory, so JIT wouldn't be immediately ruled out.
Re:A virtual machine for microcontrollers
by zozbot234 on Tuesday June 01, 2021 @09:40AM
(#27354285)
Many ARM microcontrollers have Harvard architecture as well, for improved interrupt latency compared to plain Von Neumann.
V8 has an interpreter now FWIW https://v8.dev/blog/ignition-interpreter