Commit | Line | Data |
---|---|---|
4d99a4c1 KT |
1 | .th BC VI 6/12/72 |
2 | .sh NAME | |
3 | bc \*- B interpreter | |
4 | .sh SYNOPSIS | |
5 | .bd bc | |
6 | [ | |
7 | .bd -c | |
8 | ] | |
9 | files ... | |
10 | .sh DESCRIPTION | |
11 | .it Bc | |
12 | is the UNIX B interpreter. | |
13 | It accepts three types of arguments: | |
14 | .s3 | |
15 | Arguments whose names end with | |
16 | .bd .b | |
17 | are assumed to be | |
18 | B source programs; they are compiled, and | |
19 | the object program is left on the file | |
20 | the file whose name is that of the source with | |
21 | .bd .o | |
22 | substituted for | |
23 | .bd .o. | |
24 | .s3 | |
25 | Other arguments, except for | |
26 | .bd -c, | |
27 | are assumed | |
28 | to be either loader flag arguments, or B-compatible | |
29 | object programs, typically produced by an earlier | |
30 | .it bc | |
31 | run, | |
32 | or perhaps libraries of B-compatible routines. | |
33 | These programs, together with the results of any | |
34 | compilations specified, are loaded (in the order | |
35 | given) to produce an executable program with name | |
36 | .bd a.out. | |
37 | .s3 | |
38 | The | |
39 | .bd -c | |
40 | argument suppresses the loading phase, as does | |
41 | any syntax error in any of the routines being compiled. | |
42 | .s3 | |
43 | The language itself is described in [1]. | |
44 | .s3 | |
45 | The future of B is uncertain. | |
46 | The language has been totally eclipsed by the | |
47 | newer, more powerful, more compact, and faster | |
48 | language C. | |
49 | .sh FILES | |
50 | file.b input file | |
51 | .br | |
52 | a.out loaded output | |
53 | .br | |
54 | b.tmp1 temporary (deleted) | |
55 | .br | |
56 | b.tmp2 temporary (deleted) | |
57 | .br | |
58 | /usr/lang/bdir/b[ca] translator | |
59 | .br | |
60 | /usr/lang/bdir/brt[12] runtime initialization | |
61 | .br | |
62 | /usr/lib/libb.a builtin functions, etc. | |
63 | .br | |
64 | /usr/lang/bdir/bilib.a interpreter library | |
65 | .sh "SEE ALSO" | |
66 | [1] K. Thompson; MM-72-1271-1; Users' Reference to B. | |
67 | .br | |
68 | cc(I) | |
69 | .sh DIAGNOSTICS | |
70 | see [1]. |