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

We use "stack base" uniformly to mean "the address to load into the stack
pointer for an empty stack" which may be inclusive or exclusive (above, below,
or within) the memory allocated to the stack itself. Keep in mind there are
different implementations of stacks on different processors. The primary
differences are:
1) Byte order within each cell
2) Direction the stack grows in memory
3) Nature of the push and pop operators (pre- and post- increment and decrement)
4) What the stack pointer references
> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of Bulgrien, Dennis
> Sent: Friday, April 12, 2002 1:48 PM
> To: swiftx_at_forth.com
> Subject: [swiftx] Stack Bases
>
>
>
> Our use of the term "base" is interesting. I believe that references to
> ['S0 S0 'R0 R0 'N0 N0], which we call the "base" of the target parameter,
> return, and numeric stacks, are to the cell *above* the highest
> (address-wise) usable cell of the respective stack (since a push
> predecrements) rather than to that cell. Bases of other data structures
> (vector tables, register maps, etc) are the address *of* the lowest usable
> cell.
> ----------------------------------------------------------------------
> 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 Fri Apr 12 2002 - 14:17:38 PDT
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:23 PST