i2tutorials

Compiler Design-Sentinels

Sentinels

 

In the Buffer pairs scheme, every time the forward pointer is moved, it checks in order to ensure that one half of the buffer did not move off. If it is done, then the other half should be reloaded.

 

Hence, the ends of the buffer halves need to go through two tests for every advance of the forward pointer.

 

Advantages

 

Reference Link

Sentinels

Exit mobile version