Re: Who is compiling Eu, and why?
- Posted by katsmeow Jan 30, 2015
- 1754 views
mattlewis said...
String execution is far from trivial, even just for interpreted code.
Matt
Whatever happened to
- include exec.e , which
- grabs ram to convert the string to IL code,
- creates a duplicate environment of the current app
- so when the user calls exec(), it
- converts it in a clean environ to IL
- puts the IL into the duplicate environ
- copies over the current var table that's in scope
- runs the code
- copies back any changed vars
- picks up at the next line in the app
At least, that's about the way it's done on the Commodore 64 as of 30 years ago. It's actually a little easier in two points on the C64, i call a garbage collection to clear some ram space, and then let the string have access to all the vars with no copying or scoping.
Kat