Search code examples
language-agnosticintermediate-languagecompiler-constructionintermediate-code

What does Backpatching mean?


What does backpatching mean ? Please illustrate with a simple example.


Solution

  • Back patching usually refers to the process of resolving forward branches that have been planted in the code, e.g. at 'if' statements, when the value of the target becomes known, e.g. when the closing brace or matching 'else' is encountered.