embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: INTERPRETER ;CODE to TARGET :

From: Leon Wagner <leon_at_forth.com>
Date: Thu, 25 Apr 2002 10:14:25 -0700

We still supply ;CODE mostly for legacy code. Since the advent of the
optimizing compiler, I don't use ;CODE any more. I always use DOES> (which also
has the advantage of being portable whereas ;CODE is not).

If you're in the process of porting old code to a new environment, this would be
a good time to make your old instances of ;CODE go away.

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of Bulgrien, Dennis
> Sent: Thursday, April 25, 2002 6:16 AM
> To: swiftx_at_forth.com
> Subject: [swiftx] Re: INTERPRETER ;CODE to TARGET :
>
>
>
> I can't do this because of "Address out of range" on BRA:
>
> TARGET
> : TESTT 0 DROP ;
> INTERPRETER
> : TESTI CREATE 0 ,
> ;CODE [+TARGET] ' TESTT [PREVIOUS] BRA END-CODE
>
> I guess this is it:
>
> TARGET
> : TESTT 0 DROP ;
> LABEL <TESTL> ' TESTT BRA END-CODE
> INTERPRETER
> : TESTI CREATE 0 ,
> ;CODE <TESTL> BRA END-CODE
>
> > -----Original Message-----
> > Sent: Wednesday, April 24, 2002 16:33
> >
> > I'm looking for an easier way to call a Forth word from
> > INTERPRETER ;CODE .
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
> For help with listar commands, send subject "help" to listar_at_forth.com
> Archives are located at http://www.forth.com/swiftx -- check them out!
> ----------------------------------------------------------------------
> THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Thu Apr 25 2002 - 10:14:09 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:24 PST