Next: 10. Data types
Up: QScheme Documentation
Previous: 8. Foreign function interface
  Contents
Subsections
-
- qscheme [options] [file] [-] [argument ...]
- -hs=N -heap-size=N
- the heap block size.
The number of object that can be stored in a block heap is N*1024,
and the number of block heap we can use is only limited by the virtual memory
of the computer.
- -ds=N -stack-size=N
- the stack size. The
number of object's reference that can be stored on the stack. N is a
number of kilobytes.
- -ni -no-init
- do not read the initial file
- -i -interractive
- Force interractive mode. If file
are specified, they are loaded first.
- Note:
- The heap block size does not seem to have big impact on performance yet.
The default value is 32k now which seems to be a good value.
During the initialization of QScheme, the interpreters tries to load a file
named s.scm . The location where this file should be is:
- in the current directory
- in a directory designated by the QS_LIB environment variable.
So, to summarize, the search order is always first the current directory and
then the directory pointed by the QS_LIB environment variable.
You can also use QScheme in a standard Unix script context. For example
-
- #!/usr/local/bin/qscheme -ni -ds=128
(display "Hello world")
(newline)
Will produce the expected outpout:
-
- Hello world
Easy, is not it...
Next: 10. Data types
Up: QScheme Documentation
Previous: 8. Foreign function interface
  Contents
Daniel Crettol
1999-09-17