Project

General

Profile

Actions

Feature #78

closed

Unify global and local variable handling in TAC

Feature #78: Unify global and local variable handling in TAC

Added by Eugen Wissner about 1 month ago. Updated 26 days ago.

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.

Updated by Eugen Wissner about 1 month ago Actions #1

  • Category set to IR

Updated by Eugen Wissner 26 days ago Actions #2

  • Status changed from New to Closed
Actions

Also available in: PDF Atom