Changes between Version 26 and Version 27 of Commentary/Compiler/NewCodeGenPipeline


Ignore:
Timestamp:
Oct 15, 2009 1:31:58 PM (5 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/NewCodeGenPipeline

    v26 v27  
    6868We can do better like this: 
    6969{{{ 
    70     r = foo(1, 2) returns to L 
     70    ...put params in R1 R2 etc... 
     71    call foo returns to L 
    7172 L: r = R1 
    7273    goto M 
    73  M: if (Hp < HpLim) { r = do_gc_p(r) returns to K; 
     74 M: Hp = Hp + 20 
     75    if (Hp > HpLim) { r = do_gc_p(r) returns to K; 
    7476                   K: r = R1; goto M; } 
    7577}}}