--- gforth/code.fs 2007/12/31 18:40:23 1.16 +++ gforth/code.fs 2010/04/06 21:33:44 1.19 @@ -1,6 +1,6 @@ \ 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. @@ -32,6 +32,16 @@ vocabulary assembler ( -- ) \ tools-ext here >body cfa, defstart init-asm ; +[ifdef] doabicode: +: abi-code ( "name" -- colon-sys ) \ gforth + \ start a native code definition that is called using the platform's + \ ABI conventions corresponding to C-prototype + \ struct{Cell*sp;double*fp;} function (Cell *sp, double *fp); + header + doabicode: cfa, + defstart init-asm ; +[endif] + : (;code) ( -- ) \ gforth \ execution semantics of @code{;code} r> latestxt code-address! ;