[gforth] / gforth / kernel / comp.fs  

gforth: gforth/kernel/comp.fs

Diff for /gforth/kernel/comp.fs between version 1.34 and 1.35

version 1.34, Sat Feb 24 17:24:45 2001 UTC version 1.35, Mon Feb 26 15:14:21 2001 UTC
Line 219 
Line 219 
     here last-compiled !      here last-compiled !
     , ;      , ;
   
 ' peephole-compile, IS compile,  : compile-to-prims, ( xt -- )
       \G compile xt to use primitives (and their peephole optimization)
       \G instead of ","-ing the xt.
       \ !! all POSTPONEs here postpone primitives; this can be optimized
       dup >does-code ?dup if
           swap >body POSTPONE literal POSTPONE call , EXIT
       then
       dup >code-address CASE
           docon:   OF >body POSTPONE literal POSTPONE @ EXIT ENDOF
              \ docon is also used by VALUEs, so don't @ at compile time
           docol:   OF >body POSTPONE call , EXIT ENDOF
           dovar:   OF >body POSTPONE literal EXIT ENDOF
           douser:  OF >body @ POSTPONE useraddr , EXIT ENDOF
           dodefer: OF >body POSTPONE literal POSTPONE @ POSTPONE EXECUTE EXIT
           ENDOF
           dofield: OF >body @ POSTPONE literal POSTPONE + EXIT ENDOF
       ENDCASE
       peephole-compile, ;
   
   ' compile-to-prims, IS compile,
   
 : !does    ( addr -- ) \ gforth store-does  : !does    ( addr -- ) \ gforth store-does
     lastxt does-code! ;      lastxt does-code! ;


Generate output suitable for use with a patch program
Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help