Add global vars
Merge request reports
Activity
@jung What do you think of this approach of adding global variables? It adds a new GlobalVar n expression and distinguishes between block ids that come from an allocation and from a global variable.
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Ralf Jung
So, what's unusual about this is that one can already tell from the pointer whether it points to a global or dynamic allocation. Usually I would expect this information to be encoded in the allocation, and there'd be a
gmap string block
that says, for each global variable, in which block it is stored.But this approach works equally well I think, since the program cannot inspect the structure of the pointer anyway... so, yeah, I'd say go for it!
- Resolved by Michael Sammler
added 3 commits
-
d529b12b...3a9de9c0 - 2 commits from branch
master
- 190d06b9 - start adding global vars
-
d529b12b...3a9de9c0 - 2 commits from branch
added 4 commits
-
190d06b9...db1592cc - 2 commits from branch
master
- 96123d55 - start adding global vars
- 41ca0003 - start with updating logical heap for global vars
-
190d06b9...db1592cc - 2 commits from branch
- Resolved by Ralf Jung
- Resolved by Ralf Jung
- Resolved by Michael Sammler
- Resolved by Ralf Jung
Please register or sign in to reply