User guide
iv CONTENTS
9.2.8 Flow of Control and Relations . . . . . . . . . . . . . . . . 166
9.2.9 Switch Instructions . . . . . . . . . . . . . . . . . . . . . . 166
9.2.10 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . 167
9.2.11 Floatin g -point Instructions . . . . . . . . . . . . . . . . . . 169
9.2.12 Select Instructions . . . . . . . . . . . . . . . . . . . . . . 169
9.2.13 Undefi n ed Instructions . . . . . . . . . . . . . . . . . . . . 169
9.2.14 Corrup t i on of B . . . . . . . . . . . . . . . . . . . . . . . . 170
9.2.15 Excepti on s . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
10 The Design of Sial 171
10.1 The Sial Specification . . . . . . . . . . . . . . . . . . . . . . . . . 173
10.2 The sial-386 Translator . . . . . . . . . . . . . . . . . . . . . . . 180
10.3 Comp act i o n of Sial . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11 The MC Package 187
11.1 MC Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
11.2 MC Library Functions . . . . . . . . . . . . . . . . . . . . . . . . 191
11.3 The MC Language . . . . . . . . . . . . . . . . . . . . . . . . . . 192
11.4 MC Debugging Aids . . . . . . . . . . . . . . . . . . . . . . . . . 200
11.5 The n-queens Demonstration . . . . . . . . . . . . . . . . . . . . . 200
12 Installation 205
12.1 Linux Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
12.2 Comm an d Line Arguments . . . . . . . . . . . . . . . . . . . . . . 208
12.3 Inst al l at i on on Other Machines . . . . . . . . . . . . . . . . . . . 209
12.4 Inst al l at i on for Windows XP . . . . . . . . . . . . . . . . . . . . . 209
12.5 Inst al l at i on using Cygwin . . . . . . . . . . . . . . . . . . . . . . 210
12.6 Inst al l at i on for Windows CE2.0 . . . . . . . . . . . . . . . . . . . 211
12.7 The Native Code Version . . . . . . . . . . . . . . . . . . . . . . . 211
13 Example Programs 213
13.1 Coin s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
13.2 Prim e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
13.3 Qu een s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
13.4 Frid ays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
13.5 Lambda Evaluator . . . . . . . . . . . . . . . . . . . . . . . . . . 216
13.6 Fast Fourier Transform . . . . . . . . . . . . . . . . . . . . . . . . 220
Bibliography 223
A BCPL Syntax Dia gra ms 225