forgetfulness in the chapter 7. Figure 7.10

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

forgetfulness in the chapter 7. Figure 7.10

abdelhak
In the figure 7.10
The intermediate code used is :

push local 0 // Get bar’s base address
push constant 2
add
pop pointer 1 // Set that’s base to (bar+2)
push constant 19
pop that 0 // *(bar+2)=19
...

But in the figure we see that, the pointer 0 is upadated to the addition result's, instead of pointer 1.