Re: Who is compiling Eu, and why?

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

String execution is far from trivial, even just for interpreted code.

Matt

Whatever happened to

  1. include exec.e , which
    1. grabs ram to convert the string to IL code,
    2. creates a duplicate environment of the current app
  2. so when the user calls exec(), it
    1. converts it in a clean environ to IL
    2. puts the IL into the duplicate environ
    3. copies over the current var table that's in scope
  3. runs the code
  4. copies back any changed vars
  5. 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
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu