The source file "<synth>.spn" must contain a legal C-SPAN program with its main procedure called SYNTH(). The span script concatenates a SPAN definition header with the supplied file to generate a C-language source file which is then compiled and linked with the SPAN run-time modules to create an executable program called "<synth>". Thus a SPAN file called "test.spn" creates a program called "test". To save the macro processed output from SPAN use the switch "-p", the C pre-processor output will be produced in a file <synth>.i.
SPAN programs have a common command-line interface:
<synth> (-I) (-v) (-n num) (-s sfsfile) (-A param) (-B param) etcwith the following options:
-I Identify program name and version number.
-s sfsfile Save output to SFS file. (Default is to control synthesizer/replay).
-n num Save/Replay synthesis 'n' (counting 0,1,...). Default is to save/replay all syntheses.
-v Verbose. Print control parameters to screen.
-A param etc Specify parameter 0 (B=1, C=2, etc) for the SYNTH function. Parameters are passed as an array of 26 strings.
SYNTH SPAN synthesizer control parameters
file source file for synthesis.
synth synthesis number
$(SFSBASE)/include/spandrv.h Include file for compiling SPAN programs.
$(SFSBASE/lib/spandrv.a Library containing SPAN run-time system.
1.1 M.A.Huckvale