<p>Basic way of doing compilation into an SSA with a temporary compiler-internal stack<br>Source:</p><pre><code>* (+ 2 3) (/ 1 2)<br></code></pre><p>Pseudo IR (Intermediate Representation):</p><pre><code>%1 = OpConstant 2 ; stack is %1<br>%2 = OpConstant 3 ; stack is %1 %2<br>%3 = OpAdd %1 %2 ; stack is %3<br>%4 = OpConstant 1 ; stack is %3 %4<br>%5 = OpConstant 2 ; stack is %3 %4 %5<br>%6 = OpDiv %4 %5 ; stack is %3 %6<br>%7 = OpMul %3 %6 ; stack is %7<br></code></pre>