next up previous contents
Next: 10 Data types *REVIEW* Up: QScheme Documentation Previous: 8 Foreign function interface   Contents

Subsections

9 Running QScheme

9.1 Syntax

qscheme [options] [file] [-] [argument ...]

9.2 Options

-hs=N -heap-size=N
the heap block size. The number of objects that can be stored in a heap block is N*1024, and the number of block heaps 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 references 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 interactive mode. If file are specified, they are loaded first.
Note:
The heap block size does not seem to have big impact on then performance yet. The default value is 32k now which seems to be a good value.

9.3 Environment

During the initialization of QScheme, the interpreter tries to load a file named s.scm. The initialization file will be looked for in the following directories:

QS_LIB=/usr/local/share/qscheme:$HOME/qscheme

export QS_LIB

The search order is as indicated above.

9.4 Scripting

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, isn't it...


next up previous contents
Next: 10 Data types *REVIEW* Up: QScheme Documentation Previous: 8 Foreign function interface   Contents
Daniel Crettol 2000-06-12