jlagerquist wrote:Reviving a revived post :)
Has their been an improvements to Squirrel in the last couple years to facilitate running on a micro, such as executing bytecode out of flash?
Thanks,
John
Squirrel itself does not target a specific platform, hence no improvements in this area. You will have to port that on your own.
I can tell, any micro will have to have decent RAM amounts, Squirrel code and data assumes von Neumann architecture (while on the C++ side of course Harvard will do, been there, did that)
Running bytecode directly from Flash without much RAM will be a tough approach, as squirrels structure bases on creating and initializing objects in RAM, including functions! Squirrel supports your own memory management by simply implementing your own malloc, free and realloc. I think with quite some effort you can build them in a way so that a malloc for a function is able to return a flash address. You will then still have to manipulate the related memcopy... I never tried that.
Ergo: For very small micros I don't see Squirrel fit. I recommend at least 512K RAM for halfway decent stuff, and 16K even for "hello world" kind of tasks!