diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-03-10 16:20:33 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-03-10 16:20:33 -0700 |
commit | fed9e7135c13ef8fa745afd2075eb2ff529d6241 (patch) | |
tree | 57256cf84b95791ea0592add00049b2ed02de5f5 /035compute_segment_address.cc | |
parent | 9f8524a95cb213dd83f6f3045c09357165d0f70a (diff) | |
download | mu-fed9e7135c13ef8fa745afd2075eb2ff529d6241.tar.gz |
6116 - stack locations now computed during codegen
We can't do it during parsing time because we may not have all type definitions available yet. Mu supports using types before defining them. At first I thought I should do it in populate-mu-type-sizes (appropriately renamed). But there's enough complexity to tracking when stuff lands on the stack that it's easiest to do while emitting code. I don't think we need this information earlier in the compiler. If I'm right, it seems simpler to colocate the computation of state close to where it's used.
Diffstat (limited to '035compute_segment_address.cc')
0 files changed, 0 insertions, 0 deletions