Post Reply 
RPL programming questions
02-20-2014, 03:27 PM (This post was last modified: 02-20-2014 03:28 PM by HP67.)
Post: #14
RE: RPL programming questions
(02-19-2014 05:15 PM)David Hayden Wrote:  Yes it's a table. See section 13 of RPLMAN.DOC for a detailed explanation of temporary variables and environments. In getting to know the RPL design, it seems to me that space was at a premium and they didn't everything they could to save it. A hash would have taken more space.

Thanks. I have a long list of stuff to do and read. RPLMAN is on the list.

(02-19-2014 05:15 PM)David Hayden Wrote:  Having something on the stack is just a way to provide an initial value for the variable. If you want to create all your locals at the beginning then just push a bunch of zero's on the stack and create them all. You can store the meaningful values at the appropriate place in the code.

Local var declarations are ugly enough syntax-wise without going out of my way to accomodate them. For now I'm toughing through the stack stuff which helps me remember the stack operations anyway. I thought it was interesting that Claudio mentioned in the "new 50g firmware thread" one of the things they are doing is not requiring local variables to be on the stack initially.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RPL programming questions - HP67 - 02-17-2014, 01:54 PM
RE: RPL programming questions - peacecalc - 02-17-2014, 03:10 PM
RE: RPL programming questions - Joe Horn - 02-18-2014, 01:06 PM
RE: RPL programming questions - HP67 - 02-18-2014, 01:39 PM
RE: RPL programming questions - peacecalc - 02-18-2014, 07:15 PM
RE: RPL programming questions - DavidM - 02-18-2014, 11:31 PM
RE: RPL programming questions - HP67 - 02-19-2014, 09:52 AM
RE: RPL programming questions - HP67 - 02-19-2014, 02:15 PM
RE: RPL programming questions - HP67 - 02-20-2014 03:27 PM
RE: RPL programming questions - DavidM - 02-19-2014, 05:23 PM
RE: RPL programming questions - HP67 - 02-20-2014, 03:40 PM
RE: RPL programming questions - DavidM - 02-20-2014, 04:10 PM
RE: RPL programming questions - peacecalc - 02-19-2014, 04:15 PM
RE: RPL programming questions - HP67 - 02-20-2014, 04:36 PM
RE: RPL programming questions - RMollov - 02-24-2014, 12:47 PM



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