Hi,
I think there was attempts to ort it to microcontrollers (that were far superior to the z80).
Considering what was reported, I think you'll face 2 major problems:
- Memory usage, while the VM is pretty light. The compiled out requires the source to exist in memory, for the stack trace.
- Value representation relies on double or union that is not really suitable for such constrained environment.
Both problem can be solved with some modifications.
In particular I would replace value representation with what smalltalk did. It would limit numbers to integer of 15 or 14 bits depending on the trades of made.
For the memory, it depends on how constrained the host is. If I remember well the devices are memory mapped, reducing ram space even further. So even in an ideal scenario, I wonder how much memory the base environment would use...