Post Reply 
AVars and the program compile operation
09-27-2015, 01:39 AM
Post: #1
AVars and the program compile operation
Can anyone explain the program compile operation in detail? After making an edit (in this case, activate a DelAVars instruction), I use 'check' which returns no errors found. I will exit the editor, power the calculator down, then up, try to run the App and it won't run. It ends up being a convoluted affair to get it running again. It appears the compile operation does not do a complete compile of the App when the 'check' operation is performed. Any information would be appreciated.
Thanks
rcf
Find all posts by this user
Quote this message in a reply
09-27-2015, 09:32 AM
Post: #2
RE: AVars and the program compile operation
Could you paste all your program here?
This will make it easier to diagnose your problem.

BR,
Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
09-28-2015, 06:42 AM
Post: #3
RE: AVars and the program compile operation
Hello,

Check does a compile, but does nothing with the result.

Exiting the program editor is what really compiles the program.

After compilation, every expression in the program of the form [exported] var:=value; or every CAS object gets evaluated, this initialized the global variables and cas variables (remember in CAS a function is a variable).
Normally, at this point, views, exported functions and user key get 'marked' so that they can be executed when needed.
The source code is also saved to file.

When the calc reboots, it normally loads the program descriptor. A short part of the program file which only contains the name of the variables/functions, what is a user key or a view.
Then if you try to USE one of these things, then and only then, does it load the program and silently recompile it (it only saves the source code).
If for some reason this descriptor is incorrect, then things might not work properly. The best thing to do then is to edit the program, change one char and exit.

If that does not work, you most likely have something wrong in the program.

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 




User(s) browsing this thread: