[gforth] / gforth / intcomp.fs  

gforth: gforth/intcomp.fs

Diff for /gforth/intcomp.fs between version 1.11 and 1.15

version 1.11, Tue Dec 2 21:33:18 2003 UTC version 1.15, Fri Dec 31 18:09:02 2010 UTC
Line 1 
Line 1 
 \ defining words for words with non-default and non-immediate compilation semantics  \ defining words for words with non-default and non-immediate compilation semantics
   
 \ Copyright (C) 1996,1997,2000,2003 Free Software Foundation, Inc.  \ Copyright (C) 1996,1997,2000,2003,2007,2010 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
 \ Gforth is free software; you can redistribute it and/or  \ Gforth is free software; you can redistribute it and/or
 \ modify it under the terms of the GNU General Public License  \ modify it under the terms of the GNU General Public License
 \ as published by the Free Software Foundation; either version 2  \ as published by the Free Software Foundation, either version 3
 \ of the License, or (at your option) any later version.  \ of the License, or (at your option) any later version.
   
 \ This program is distributed in the hope that it will be useful,  \ This program is distributed in the hope that it will be useful,
Line 15 
Line 15 
 \ GNU General Public License for more details.  \ GNU General Public License for more details.
   
 \ You should have received a copy of the GNU General Public License  \ You should have received a copy of the GNU General Public License
 \ along with this program; if not, write to the Free Software  \ along with this program. If not, see http://www.gnu.org/licenses/.
 \ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  
   
 \ used like  \ used like
 \ : <name> create-interpret/compile ...  \ : <name> create-interpret/compile ...
Line 47 
Line 46 
     latestxt interpret/compile-int @ r@ >body = and      latestxt interpret/compile-int @ r@ >body = and
     latestxt interpret/compile-comp @ r> = and      latestxt interpret/compile-comp @ r> = and
     0= abort" not created with create-interpret/compile"      0= abort" not created with create-interpret/compile"
     cell+ cell+ maxaligned /does-handler + \ to does-code      cell+ cell+ maxaligned \ to does-code
     swap @ does-code! ;      swap @ does-code! ;
   
 : (interpretation>1) ( addr R:retaddr -- )  : (interpretation>1) ( addr R:retaddr -- )
Line 55 
Line 54 
   
 : interpretation> ( compilation. -- orig colon-sys ) \ gforth  : interpretation> ( compilation. -- orig colon-sys ) \ gforth
     here 4 cells +  POSTPONE literal POSTPONE (interpretation>1) POSTPONE ahead      here 4 cells +  POSTPONE literal POSTPONE (interpretation>1) POSTPONE ahead
     dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict      defstart dead-code off 0 set-locals-size-list ; immediate restrict
   
 : <interpretation ( compilation. orig colon-sys -- ) \ gforth  : <interpretation ( compilation. orig colon-sys -- ) \ gforth
     ?struc POSTPONE exit      ?struc POSTPONE exit
Line 66 
Line 65 
   
 : compilation> ( compilation. -- orig colon-sys ) \ gforth  : compilation> ( compilation. -- orig colon-sys ) \ gforth
     here 4 cells + POSTPONE literal POSTPONE (compilation>1) POSTPONE ahead      here 4 cells + POSTPONE literal POSTPONE (compilation>1) POSTPONE ahead
     dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict      defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict
   
 comp' <interpretation drop  comp' <interpretation drop
 Alias <compilation ( compilation. orig colon-sys -- ) \ gforth  Alias <compilation ( compilation. orig colon-sys -- ) \ gforth


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help