Diff for /gforth/code.fs between versions 1.16 and 1.20

version 1.16, 2007/12/31 18:40:23 version 1.20, 2010/04/10 14:36:34
Line 1 Line 1
 \ ASSEMBLER, CODE etc.  \ ASSEMBLER, CODE etc.
   
 \ Copyright (C) 1995,1996,1997,1999,2003 Free Software Foundation, Inc.  \ Copyright (C) 1995,1996,1997,1999,2003,2007 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 27  vocabulary assembler ( -- ) \ tools-ext Line 27  vocabulary assembler ( -- ) \ tools-ext
     also assembler ;      also assembler ;
   
 : code ( "name" -- colon-sys )  \ tools-ext  : code ( "name" -- colon-sys )  \ tools-ext
     \ start a native code definition      \G start a native code definition
     header      header
     here >body cfa,      here >body cfa,
     defstart init-asm ;      defstart init-asm ;
   
   [ifdef] doabicode:
   : abi-code ( "name" -- colon-sys )      \ gforth        abi_code
      \G Start a native code definition that is called using the platform's
      \G ABI conventions corresponding to the C-prototype:
      \G @example
      \G struct@{Cell*sp;double*fp;@} function (Cell *sp, double *fp);
      \G @end example
       header  
       doabicode: cfa,
       defstart init-asm ;
   [endif]
   
 : (;code) ( -- ) \ gforth  : (;code) ( -- ) \ gforth
     \ execution semantics of @code{;code}      \ execution semantics of @code{;code}
     r> latestxt code-address! ;      r> latestxt code-address! ;
Line 46  vocabulary assembler ( -- ) \ tools-ext Line 58  vocabulary assembler ( -- ) \ tools-ext
 interpret/compile: ;code ( compilation. colon-sys1 -- colon-sys2 )      \ tools-ext     semicolon-code  interpret/compile: ;code ( compilation. colon-sys1 -- colon-sys2 )      \ tools-ext     semicolon-code
   
 : end-code ( colon-sys -- )     \ gforth        end_code  : end-code ( colon-sys -- )     \ gforth        end_code
     ( end a code definition )      \G end a code definition 
     latestxt here over - flush-icache      latestxt here over - flush-icache
     previous ?struc reveal ;      previous ?struc reveal ;
   

Removed from v.1.16  
changed lines
  Added in v.1.20


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>