Advantages of compiling a language vs Executing the AST as soon as it is constructed

Viewed 2118

What are the benefits/drawbacks of compiling a program to machine code instead of simply constructing the AST from the source and executing operations as you traverse the tree?

Are there certain reasons you would want to do one over the other?

2 Answers
Related