Because you want to use some sort of internal pseudo code or tables/data structures. For example if you have some line of code:
a = b + c;
You would want to take that and break it into an intermediate language or IR (Intermediate
Because you want to use some sort of internal pseudo code or tables/data structures. For example if you have some line of code:
a = b + c;
You would want to take that and break it into an intermediate language or IR (Intermediate representation):
add b + c
as an example -- there are many solutions. The intermediate language is better than going straight to assembly for a particular target for a number of reasons:
- By abstracting the hardware and providing a "logical number" of registers we are independent of the f