|Re: Does the HP Prime really compiles the user programs?|
Message #2 Posted by Tim Wessman on 13 Dec 2013, 10:20 a.m.,
in response to message #1 by CompSystems
Yes, it does. Any time you modify the program, it will recompile it. This includes exiting the program editor, or using the CHECK button. There is a header that contains names and argument info of exported variables (so the system doesn't need to parse every program to know the names of those for use), a source code area, and a pointer to compiled program.
A non-valid source file will not generate header information.
On runtime, the header information is used to allow usage of the exported functions or variables. If one of the functions is called and there is no compiled version available, it will compile and then execute. Else it just executes.
On a fresh boot, there will be no valid compiled pointers, but the header information is still there.
Glad he came to the conclusion - "Yes". :-)
Edited: 13 Dec 2013, 10:55 a.m.