next up previous contents
Next: 10. Data types 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 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.

9.3 Environment

During the initialization of QScheme, the interpreters tries to load a file named s.scm . The location where this file should be is:

So, to summarize, the search order is always first the current directory and then the directory pointed by the QS_LIB environment variable.

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, is not it...


next up previous contents
Next: 10. Data types Up: QScheme Documentation Previous: 8. Foreign function interface   Contents
Daniel Crettol
1999-09-17