summaryrefslogtreecommitdiff
path: root/static/v10/man1/c++.1
blob: e41cfe58d8a6674ba595b36add8387f54f8c480b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.TH C++ 1
.CT 1 prog_c
.SH NAME
CC, cfront \- C++ compiler
.SH SYNOPSIS
.B CC
[
.I option ...
]
.I file ...
.PP
.B cfront
[
.I option ...
]
.I file ...
.SH DESCRIPTION
.I CC
compiles and links C++ programs in the manner of
.IR cc (1).
It handles source files with names ending in
.LR .c  ,
assembler files in
.LR .s ,
and object files in
.LR .o .
Various passes of the compiler can be substituted via
environment variables listed under
.SM `FILES'.
Options include those of
.IR cc (1)
except
.BR -B 
and
.BR -t ,
those of
.IR ld (1),
those of
.I cfront,
and in addition
.TP
.BR -F
Run only the macro preprocessor 
.IR cpp (8)
and
.I cfront
on the named 
.B .c
files, and send the result to the
standard output.
.TP
.BI -. suffix
Instead of the standard output, place
.B -E 
and
.B -F
output in files whose name is that of the source with 
.BI . suffix
substituted for
.LR .c .
.PP
.I Cfront
reads C++ code (without preprocessing) from the standard input
and writes equivalent C code on the standard output.
The options are
.TP
.B +d
Don't expand inline functions.
.TP
.BI +x file
Take size and alignment information from
.I file
for cross compiling.
.TP
.B +e0
.PD0
.TP
.B +e1
Make external declarations 
.RB (+e0)
or definitions
.BR (+e1)
for virtual function tables.
These tables may appear as static data in
every compilation;
the options are intended to save redundant space.
.PD
.TP
.B +a0
Produce classic C output (default).
.TP
.B +a1
Produce 
.SM ANSI
C output.
If this option is used with
.I CC,
then an
.SM ANSI
C compiler such as
.I lcc
must be specified in environment variable
.BR ccC .
.TP
.BI +f name
Use
.I name
to identify the source file in diagnostics.
.TP
.B +L
Produce
.SM ANSI
standard
.B #line
directives instead of
.BI # number.
.SH FILES
.TF cfrontC=/usr/bin/cfront
.TP
.B cppC=/lib/cpp
C preprocessor
.TP
.B cfrontC=/usr/bin/cfront
C++ translator
.TP
.B ccC=/bin/cc
C compiler
.TP
.B munchC=/usr/lib/munch
linker postprocessor for static initialization
.TP
.F /usr/lib/libC.a
C++ library
.TP
.F /usr/include/CC
standard directory for C++
.L #include
files
.TP
Other files as in \fIcc\fR
.SH SEE ALSO
.IR cc (1),
.IR ld (1)
.br
B. Stroustrup,
.I The C++ Programming Language,
Addison-Wesley, 1986
.br
B. Stroustrup,
.I C++ Reference Manual,
AT&T Bell Laboratories, May 1989