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

Re: TARGET .ALLOCATION

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Thu, 9 Dec 2004 10:18:38 -0600

In build.f it works after F8 (and the number is identical to .ALLOCATION )
but the code is overwritten by F9. It needs to be placed earlier in the
compile. This method can be used for CDATA, IDATA, and UDATA.

-----Original Message-----
From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com] On Behalf
Of Bulgrien, Dennis
Sent: Thursday, December 09, 2004 9:24
To: 'swiftx_at_forth.com'
Subject: [swiftx] Re: TARGET .ALLOCATION

...
______________
build.f:

...
INCLUDE KERNEL
CR .ALLOCATION

: (/SECTION-USED) ( -- )
  [ SAVE-SECTIONS ]
  [ CDATA SECTION-USED ] LITERAL SECTION-USED-CDATA !
  [ RESTORE-SECTIONS ] \ IDATA needed for IS below
;
' (/SECTION-USED) IS /SECTION-USED

INTERPRETER
SAVE-CODE TARGET.BIN
...
----------------------------------------------------------------------
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 Thu Dec 09 2004 - 08:19:09 PST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:50 PST