Changes between Version 29 and Version 30 of Commentary/Compiler/NewCodeGenPipeline


Ignore:
Timestamp:
Oct 15, 2009 1:36:52 PM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/NewCodeGenPipeline

    v29 v30  
    8181
    8282Now the {{{do_gc_p}}} call has the same return signature as {{{foo}}}
    83 and can use the same continuation.
     83and can use the same continuation, thus:
     84{{{
     85    ...put params in R1 R2 etc...
     86    call foo returns to L
     87 L: r = R1
     88    goto M
     89 M: Hp = Hp + 20
     90    if (Hp > HpLim) { R1 = r
     91                      call do_gc_p returns to L }
     92}}}
     93
    8494(A call followed by a {{{goto}}} thus gets optimized down to just the call.)
    8595