![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

> The error is:
>
> INTERPRETER ok
> ok
> : STRUCT ( "name" -- xx offset )
> CREATE
> HERE ( leave the address of the following
> sizeof-comma )
> 0 DUP , ( initial size is zero and left on
> the stack )
> DOES> ( has the address of the sizeof-comma )
> CREATE ( make a variable ) CREATE ?
>
> Nevertheless with swiftForth it compiles ok
> (SwiftX MSP430 3.1.2)
Ah, yes, all is clear now. The words in the instance part of the definition
(after DOES>) are TARGET-executable words, and the target doesn't include
CREATE, that's an INTERPRETER-only word. This whole concept will have
trouble in the SwiftX environment, where compiling is done on the host.
It's probably possible to jigger the scopes to make it work (look at some of
the examples in the SwiftX Reference Manual), but it'll really be easier to
use the Open Firmware version, which has none of these problems.
Cheers,
Elizabeth
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Aug 23 2004 - 12:46:46 PDT
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:49 PST