Re: Call a external program from a program



On Sun, 31 May 2009 19:43:05 -0500, NEDM64 wrote:

\<< KRAFT \>> doesn't executes KRAFT, but gives me 'KRAFT'

Then there is no variable named 'KRAFT' in the current or any higher
calculator directory, in which case the evaluation of the name
leaves the name on the stack.

The 48G series owners manuals have very good explanations
of how everything is evaluated;
I know less about the 49/50 series manuals,
because they were not as inspiring to read :)

If by any chance KRAFT is a command in a library,
that you may have installed after entering your own program,
then just edit your program again (make no changes,
just press ENTER after you start editing).

Each time you complete a UserRPL editing session,
the text that you were editing is automatically
recompiled into a binary program.

During compilation, an unknown word such as KRAFT is searched for
in the current and higher directories, and if not found,
it is searched for in attached libraries (including built-ins).

If the word is found first in a directory, the word is compiled
as a variable name; if the word is found first in a library,
it is compiled as either a library command or internal command;
if the word is not found at all, it is compiled as a variable name.

When the program is decompiled (displayed or being edited),
the word KRAFT looks the same in all cases, but if it got compiled
as a variable name, its evaluation can only evaluate a variable,
whereas if it got compiled as a command (or library command),
it can only execute that command.

One may therefore sometimes need to recompile UserRPL,
to cause the compiler to recognize a newly installed
(or newly attached) library.

No such confusion occurs in SysRPL, where there is a specific unique syntax
for each different type of object, e.g. "ID X" for a "global" variable name.
"LAM X" for a "local" variable name, "ROMPTR mmm nnn" for a library reference,
"PTR nnnnn" for a direct ROM address, etc.

[r->] [OFF]
.



Relevant Pages

  • Re: Enlightnement
    ... > command line and do not have a book on Linux. ... it is good to see a new user leap right into compilation. ... make install ... the system know what libraries are available and where. ...
    (comp.os.linux.setup)
  • Re: Using .f files with .f90 codes: Symbol Referencing error
    ... This isn't actually a compilation error. ... finished and has invoked the linker sort of "behind your back". ... than in the source code (so I'm glad you showed the command line). ... switch just says to look in that directory when searching for libraries, ...
    (comp.lang.fortran)
  • Re: How to do SFTP?
    ... It looks like my PHP wasn't ... How do you know the libraries aren't compiled in? ... You need the libraries loaded either at compilation time or dynamically ... command line - while sftp requires you toprovide the operation ...
    (comp.lang.php)
  • Re: pgm object/source comparison
    ... There may be plenty of reasons why compilation fails, ... ILE, like default activation groups, objects ... I moved the libraries, files and ... >>> seems fairly obvious that the source code in those two don't match ...
    (comp.sys.ibm.as400.misc)
  • Re: vc++ mfc project build is extremely slow taking hours
    ... How sophisticated are the "third party" libraries. ... in slower compilation, but not an hour. ... How fast is your network and file server? ... I am using precompiled headers and the environment variables point to ...
    (microsoft.public.vc.mfc)