Displaying 1 result from an estimated 1 matches for "do_one_argument".
2005 May 04
0
[LLVMdev] Re: stacker doc
...handle_while function in
StackerCompiler.cpp in projects/Stacker/lib/compiler. Apparently the
control value is only examined (not popped) for the "WHILE" operator.
Take for example the prime.st sample program. The first thing it does is
process the arguments with a WHILE loop:
WHILE
do_one_argument
END
The do_one_argument relies on the fact that the initial stack contains
the program arguments and the argument count, like this:
argc
argv[0]
argv[1]
argv[2]
...
It begins by decrementing the top of the stack (argc) and swapping the
first two items, so the stack looks like:
argv[0]
argc-1
ar...