HP Forums
Does the HP Prime really compiles the user programs? - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Does the HP Prime really compiles the user programs? (/thread-258559.html)



Does the HP Prime really compiles the user programs? - CompSystems - 12-13-2013

https://www.youtube.com/watch?v=rAyB-dpQCL4


Edited: 13 Dec 2013, 7:23 a.m.


Re: Does the HP Prime really compiles the user programs? - Tim Wessman - 12-13-2013

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". :-)

TW

Edited: 13 Dec 2013, 10:55 a.m.


Re: Does the HP Prime really compiles the user programs? - Mike Morrow - 12-13-2013

The material is presented in horribly ineffective manner. Rapid-fire presentation, in the company of very distracting musical noise, is never an intelligent didactic technique.


Re: Does the HP Prime really compiles the user programs? - Kévin Ouellet (Canada) - 12-13-2013

One thing for sure, compiling is really fast. When compiling a TI-83 ASM program (Hello World, for example) with TASM on my Intel Celeron 2.9 GHz a few years ago, it took about 4 seconds.