News for hackers. Stuff that matters.
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.
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.
Re:A virtual machine for microcontrollers by codys on Tuesday June 01, 2021 @09:30AM (#27354107)
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?
Re:A virtual machine for microcontrollers by jeremyjh on Tuesday June 01, 2021 @09:38AM (#27354251)
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.
Re:A virtual machine for microcontrollers by tyingq on Tuesday June 01, 2021 @10:44AM (#27355186)
"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.
Re:A virtual machine for microcontrollers by phpnode on Tuesday June 01, 2021 @09:16AM (#27353918)
V8 has an interpreter now FWIW https://v8.dev/blog/ignition-interpreter
Re:A virtual machine for microcontrollers by tyingq on Tuesday June 01, 2021 @09:25AM (#27354030)
The ESP32 has IRAM, which you can write to and execute from.