Typechecking - fast labels handling #9
Labels
discussion
When you want to discuss about something
performance
Something can run faster/lower on memory
type-checking
Anything about the typechecking process
Milestone
The easiest way of handling labels is to do it in two passes:
While this certainly would work, this is not very efficient (we need to traverse the whole AST twice). Maybe there exists a way to do both at the same time, while still keeping forward jumps.
A similar issue arises for the code generation, because on, for example, x86 instructions do not have a fixed width, impacting the labels addresses. But this will be discussed in time.
The text was updated successfully, but these errors were encountered: