Post Reply 
compiled or not?
12-15-2015, 05:56 AM
Post: #4
RE: compiled or not?
Hello,

PPL text is transformed into an evaluation tree which represents the original code but is much faster to execute/access.

Variables are kept as text and looked up when needed. One of the reason for this is that, since PPL is, at least partially a symbolic language (you can create an equation and pass it around, with QUOTE for example), what might look like a local (for example), might actually be a global when executed.

Also, PPL has WAY more type of variables that C or C++, and has the ability to modify its own variables (to some extend).
(variables types are: home build in, home user, app build in, app users, app exported program, exported program, current program global, local, CAS)...

At this point, variables are not sorted. This is, to some extend, under the assumption that each program block is 'small'. ie, that each list of variable is small. Local variable, for example, one 'list' of local variable gets created when a user function is called, and each time the LOCAL keyword is used. Since LOCAL can only create 8 variables at the same time, this limits the use of a sort search.

It is true that I could at least sort the symbols in programs. It would indeed help for program global variables and program function search.

Quite frankly, I never dreamed that people would create program that large and complex with this little language and therefore never thought of such issues!

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
compiled or not? - ji3m - 12-15-2015, 12:41 AM
RE: compiled or not? - luisphysics - 12-15-2015, 02:26 AM
RE: compiled or not? - eried - 12-15-2015, 04:03 AM
RE: compiled or not? - cyrille de brébisson - 12-15-2015 05:56 AM
RE: compiled or not? - hpfx - 12-15-2015, 07:02 AM
RE: compiled or not? - Wes Loewer - 12-17-2015, 03:39 PM
RE: compiled or not? - hpfx - 12-17-2015, 09:58 PM
RE: compiled or not? - Wes Loewer - 12-18-2015, 01:12 PM
RE: compiled or not? - hpfx - 12-18-2015, 05:15 PM
RE: compiled or not? - ji3m - 12-15-2015, 01:50 PM
RE: compiled or not? - ji3m - 12-16-2015, 01:04 PM
RE: compiled or not? - ji3m - 12-18-2015, 07:27 PM
RE: compiled or not? - eried - 12-19-2015, 12:00 AM
RE: compiled or not? - ji3m - 12-19-2015, 05:08 AM



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