Changes between Version 1 and Version 2 of Commentary/Compiler/GeneratedCode


Ignore:
Timestamp:
Nov 13, 2010 2:22:05 AM (3 years ago)
Author:
draconx
Comment:

Fix spelling errors

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/GeneratedCode

    v1 v2  
    66this key role, it is generally poorly understood amongst GHC users. 
    77This document aims to provide an overview of the STG machine in 
    8 it's modern, eval/apply-based, pointer-tagged incarnation by a 
     8its modern, eval/apply-based, pointer-tagged incarnation by a 
    99series of simple examples showing how Haskell source code is 
    1010compiled. 
     
    646646}}} 
    647647 
    648 Because `known_fun_2` is of arity 2, when we jump to it's entry 
     648Because `known_fun_2` is of arity 2, when we jump to its entry 
    649649code, it will only consume the top two arguments from the stack: 
    650650i.e. the two pointers to `base_GHCziBase_id_closure`. It will then 
     
    10511051 
    10521052As we saw earlier, any time that the STG machine decides that it 
    1053 has a value in it's hand, it will continue evaluation by 
     1053has a value in its hand, it will continue evaluation by 
    10541054tail-calling the entry code found by dereferencing the info-table 
    10551055pointer at the top of the stack. So by putting the address of our