Thread Closed 
history of the 4-level stack
09-07-2014, 02:21 PM
Post: #15
OT: deep stack issues
Quote:It is a kind of sadism to program stack manipulation over lets say six stack places (with my preferred HP 50g).

As Walter writes, it doesn't really matter how much is on the stack; all that matters is the few arguments that the current subroutine needs, and what arguments it is expected to put on the stack before quitting. Because routines can call each other (even recursively), they will add their layers of temporary objects on the stack, but if well written, they will only leave data behind that the caller needs.

A casual user might indeed get lost when interrupting an app that is running deep in calls, but that doesn't matter from the perspective of each routine.

So a well written app should end with no garbage left on the stack, only with the expected output.

48SX; 42S; 15C; DM-15; DM-41; my public HP links
Find all posts by this user
Thread Closed 


Messages In This Thread
history of the 4-level stack - axd1967 - 09-05-2014, 09:11 PM
RE: history of the 4-level stack - d b - 09-11-2014, 07:21 PM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 05:15 PM
RE: history of the 4-level stack - jebem - 09-06-2014, 07:33 AM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 05:27 PM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 06:06 PM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 10:19 AM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 10:04 AM
OT: deep stack issues - axd1967 - 09-07-2014 02:21 PM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 03:13 PM
RE: history of the 4-level stack - John R - 09-11-2014, 02:31 AM
RE: history of the 4-level stack - John R - 09-11-2014, 02:39 AM
RE: history of the 4-level stack - axd1967 - 09-11-2014, 08:35 AM
RE: history of the 4-level stack - John R - 09-11-2014, 01:22 PM
RE: history of the 4-level stack - axd1967 - 09-10-2014, 09:35 AM
RE: history of the 4-level stack - axd1967 - 09-11-2014, 05:13 PM



User(s) browsing this thread: 1 Guest(s)