3 ms·
I wonder if exists other ways, and find a obscure reference to "slim binaries": (Asked here) https://www.reddit.com/r/Compilers/comments/2o78hd/exist_a_sample
by mamcx 12y ago
I wonder if exists other ways, and find a obscure reference to "slim binaries":
(Asked here)
https://www.reddit.com/r/Compilers/comments/2o78hd/exist_a_sample_code_for_the_slim_binaries/ https://www.reddit.com/r/Compilers/comments/2o78hd/exist_a_s...
Also, I wonder how NOT lost the info that already have the AST in the bytecode conversion, I even have the crazy idea to store everything in a sqlite database, but I suspect will be slow (to read later in the VM...)
- barrkel 12y agoEvaluate code for a stack machine symbolically, and you'll end up with an expression tree. RPN bytecode is a post-order traversal of the underlying expression. Things get a bit more wrinkly with control flow, but you can design bytecode to make it easier to rehydrate that too.