Actions
Feature #78
closedUnify global and local variable handling in TAC
Feature #78:
Unify global and local variable handling in TAC
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
IR
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Some assemblers (x86) can move not only between registers, but can also dereference the address in the register, e.g.:
mov eax, [edx]
mov eax, [myVar]
The first instruction stores the value in eax at address in edx, the second one – in the address referenced by myVar.
Therefore it doesn't make sense to distinguish symbol and pseudo in ElnaTacOperand, it's too early. This is should be done in assembly generator.
Actions