Changes between Version 7 and Version 8 of Commentary/Compiler/StackAreas


Ignore:
Timestamp:
Jun 5, 2008 2:51:49 PM (7 years ago)
Author:
dias
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/StackAreas

    v7 v8  
    22== Stack Layout == 
    33 
    4 = The old approach 
     4=== The old approach === 
     5 
    56 
    67In the old code generator, most of the pipeline refers to variables by name. Only at the end of the pipeline is the stack laid out, at which point we finally have instructions that can refer to stack slots. The consequence of this approach is that we have to provide special treatment for code that must refer to stack slots (e.g. parameter passing in calling conventions, or spills and reloads). In particular, we defined special instructions for !CopyIn and !CopyOut of function arguments. Every stage of the back end must cope with these special cases.