User guide
4.3. COMMANDS 113
casech FROM/A,TO/A,DICT/K,U/S,L/S,A/S CIN:y, POS:y, NAT:y
This command systematically converts all reserved words of a BCPL program to
upper case and changing all identifiers to upper case (U), lower case (L, or in the form
given by a specified dicti onar y (DICT). The A switch causes all letters i nc l udi n g those
in strings to be converted to upper case.
changepri TASK/N/A,PRI=PRIORITY/N CIN:n, POS:y, NAT:n
This Cintpos command changes the priority of the specified task to a specified
value. If two arguments are given the first identifies the task and the second the new
priority. If on l y one argument is given it is treated as t he new priority of the current
task. A Cintpos priority can be any positive integer but there is the restiction that no
two tasks can have the same priority.
checksum FROM/A,TO/K CIN:y, POS:y, NAT:y
This command calculates a check sum for the file specified by the FROM argument,
sending the result to the file speci fie d by the TO argument.
cmpltest CIN:y, POS:y, NAT:y
This is a t e st program that checks for errors in the BCPL compiler and Cintcode
interpreter.
cobench CIN:y, POS:y, NAT:y
This is a benchmark program to test the efficiency of coroutines.
cobounce CIN:y, POS:y, NAT:y
This is a simple coroutine benchmark that bounces a message between two corou-
tines.
compare FILE1/A,FILE2/A,TO/K,OPT/K CIN:y, POS:y, NAT:y
This command compares two files outputting a description of how they differ to the
TO file if specified, or to st andar d output if not. The OPT str i n g consists of items of the
form Wn, Mn and Rn, separated by spaces or commas. Each n is a number greater than
zero. Wn means truncate all input lines to no more than n characters. Mn search for up
to n mismatching lines. Rn means that n lines must match before synchronisation is
restored after a mismatch.
cosim -n/n,-s/n,-p/n,-r/n,-t/s CIN:y, POS : y, NAT:y
This is a demonstration program showing how to write a discrete event simulator
using coroutines, and it is also be used as a benchmark. Its arguments can set the
variables n, s, p and r that configure the test, and the -t switch turns on ru n time
tracing to check that the simulator is behaving correctly. For a full description and
listing of this program see Section 3.7.3.
dat CIN:y, POS:y, NAT:y
This commands output the current dat e and time to the TO file, if specified, other-