Why am I confused!... You say that " TARGET ' #TEST .' #TEST " finds #TEST
in *EQUATES though I thought *TARGET . Regardless, I understand that "
INTERPRETER ' #TEST .' #TEST " prints (xt) because the #TEST that it finds
(a host xt) is not an address [of #TEST machine code] but is indirectly
related to it.
Tools Words says:
***** *TARGET *****
#TEST
***** *INTERPRETER *****
#TEST
***** *EQUATES *****
***** FORTH *****
FORTH and *INTERPRETER contain ' and .':
TARGET ORDER
Context: *EQUATES *INTERPRETER
Current: *TARGET ok
INTERPRETER ORDER
Context: FORTH *EQUATES *INTERPRETER
Current: *INTERPRETER ok
TARGET ' #TEST H. 295C8 ok
INTERPRETER ' #TEST H. 1714AF ok
-----Original Message-----
From: Leon Wagner [mailto:leon_at_forth.com]
Sent: Thursday, January 03, 2002 15:42
> Are you saying that FORTH .' points out that ' #TEST is not an address?
It's telling you that the value on the stack corresponds to the xt of #TEST,
not
the address of #TEST.
> Are you saying that the target compiler's (non-SwiftForth's in
*INTERPRETER)
> .' finds the address of the target definition in an EMPLACED word and thus
> is always an xt therefore does not print (xt)?
Nope. It's finding the twin in *EQUATES which is part of the search order.
>
> PS: : #TEST 0 ; works just as well...
>
> -----Original Message-----
> From: Leon Wagner [mailto:leon_at_forth.com]
> Sent: Thursday, January 03, 2002 13:21
>
> After you say INTERPRETER, you're using the host SwiftForth's ' and .' .
> Host
> xt's are not addresses and its .' points this out to you. In your
> particular
> target (which is either a 68K or ColdFire, you don't say which), xt's are
> addresses. This is not the case for all implementations (such as the
Atmel
> AVR
> family in which the xt looks like an address but isn't.)
>
> > -----Original Message-----
> > From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> > Of Bulgrien, Dennis
> > Sent: Thursday, January 03, 2002 11:07 AM
> >
> >...
> > What is the significance of "(xt)" in INTERPRETER .' output?
> > TARGET ok
> > ' #TEST .' #TEST ok
> > INTERPRETER ok
> > ' #TEST .' (xt) #TEST ok
----------------------------------------------------------------------
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!
Received on Fri Jan 04 2002 - 06:18:20 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.