--- gforth/code.fs 2007/12/31 19:02:24 1.17 +++ gforth/code.fs 2010/04/05 22:17:56 1.18 @@ -32,6 +32,14 @@ vocabulary assembler ( -- ) \ tools-ext here >body cfa, defstart init-asm ; +: 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 ; + : (;code) ( -- ) \ gforth \ execution semantics of @code{;code} r> latestxt code-address! ;