1 | .\" -*- Mode: Nroff -*-
|
---|
2 | .\"
|
---|
3 | .\" uC++ Version 6.1.0, Copyright (C) Peter A. Buhr 1994
|
---|
4 | .\"
|
---|
5 | .\" u++.1 --
|
---|
6 | .\"
|
---|
7 | .\" Author : Peter A. Buhr
|
---|
8 | .\" Created On : Sat Jul 2 21:47:05 1994
|
---|
9 | .\" Last Modified By : Peter A. Buhr
|
---|
10 | .\" Last Modified On : Fri Apr 6 13:44:28 2012
|
---|
11 | .\" Update Count : 52
|
---|
12 | .\"
|
---|
13 | .\" nroff -man u++.1
|
---|
14 | .\"
|
---|
15 | .ds Ho "/usr/local
|
---|
16 | .ds Vr "u++\-6.1.0
|
---|
17 | .TH u++ 1
|
---|
18 | .SH NAME
|
---|
19 | u++ \- uC++ Translator and Concurrency Runtime System
|
---|
20 | .SH SYNOPSIS
|
---|
21 | u++ [-option [...]] [filename [...]]
|
---|
22 | .SH DESCRIPTION
|
---|
23 | The u++ command compiles uC++ and C++ source files and links C++ object files
|
---|
24 | named on the command line.
|
---|
25 |
|
---|
26 | The u++ command introduces a translator pass over the specified source files
|
---|
27 | after the C preprocessor but before the actual C++ compilation. The translator
|
---|
28 | converts several new uC++ constructs into C++ statements. The u++ command also
|
---|
29 | provides the runtime concurrency library, which must be linked with each uC++
|
---|
30 | application.
|
---|
31 |
|
---|
32 | The command line options depend on the particular C++ compiler used. As with
|
---|
33 | most C compilers, the output is sent to the file a.out(5) unless the -o option
|
---|
34 | is present on the command line. See the reference pages for g++(1) and CC(1)
|
---|
35 | for more information.
|
---|
36 | .SH OPTIONS
|
---|
37 | When multiple conflicting options appear on the command line, e.g.,
|
---|
38 | .B -debug
|
---|
39 | followed by
|
---|
40 | .B -nodebug,
|
---|
41 | the last option takes precedence.
|
---|
42 | All of the options available to the C++ compiler are available to u++, plus the
|
---|
43 | following:
|
---|
44 | .IP -debug 3
|
---|
45 | The program is linked with the debugging version of the unikernel or
|
---|
46 | multikernel. The debug version performs runtime checks to help during the
|
---|
47 | debugging phase of a uC++ program, but substantially slows the execution of the
|
---|
48 | program. This option is the default.
|
---|
49 | .IP -nodebug
|
---|
50 | The program is linked with the non-debugging version of the unikernel or
|
---|
51 | multikernel, so the execution of the program is faster. However, no runtime
|
---|
52 | checks or asserts are performed so errors usually result in abnormal program
|
---|
53 | termination.
|
---|
54 | .IP -yield
|
---|
55 | When a program is translated, a random number of context switches occur at the
|
---|
56 | beginning of each member routine so that during execution on a uniprocessor
|
---|
57 | there is a better simulation of parallelism. (This non-determinism in
|
---|
58 | execution is in addition to random context switching due to pre-emptive
|
---|
59 | scheduling. The extra yields of execution can help during the debugging phase
|
---|
60 | of a uC++ program, but substantially slows the execution of the program.
|
---|
61 | .IP -noyield
|
---|
62 | Additional context switches are not inserted in member routines. This option
|
---|
63 | is the default.
|
---|
64 | .IP -verify
|
---|
65 | When a program is translated, a check to verify that the stack has not
|
---|
66 | overflowed occurs at the beginning of each member routine. Verifying the
|
---|
67 | stack has not overflowed is important during the debugging phase of a uC++
|
---|
68 | program, but slows the execution of the program.
|
---|
69 | .IP -noverify
|
---|
70 | Stack-overflow checking is not inserted in member routines. This option is the
|
---|
71 | default.
|
---|
72 | .IP -multi
|
---|
73 | The program is linked with the multikernel. See the uC++ RUNTIME KERNELS
|
---|
74 | section below.
|
---|
75 | .IP -nomulti
|
---|
76 | The program is linked with the unikernel. This option is the default. See the
|
---|
77 | uC++ RUNTIME KERNELS section below.
|
---|
78 | .IP -quiet
|
---|
79 | The uC++ compilation message is not printed at the beginning of a
|
---|
80 | compilation.
|
---|
81 | .IP -noquiet
|
---|
82 | The uC++ compilation message is printed at the beginning of a compilation.
|
---|
83 | This option is the default.
|
---|
84 | .IP -U++
|
---|
85 | Only the C preprocessor and the uC++ translator steps are performed and the
|
---|
86 | transformed program is written to standard output, which makes it possible to
|
---|
87 | examine the code generated by the uC++ translator.
|
---|
88 | .IP "-compiler path-name"
|
---|
89 | The path-name of the compiler used to compile a uC++ program(s). The default
|
---|
90 | is the compiler used to compile the uC++ runtime library. It is unsafe to use
|
---|
91 | a different compiler unless the generated code is binary compatible.
|
---|
92 | .SH uC++ RUNTIME KERNELS
|
---|
93 | There are two versions of the uC++ kernel: the unikernel, which is designed to
|
---|
94 | use a single processor; and the multikernel, which is designed to use several
|
---|
95 | processors. Thus, the unikernel is sensibly used on systems with a single
|
---|
96 | hardware processor or when kernel threads are unavailable; the multikernel is
|
---|
97 | sensibly used on systems that have multiple hardware processors and when kernel
|
---|
98 | threads are available. The table below shows the situations where each kernel
|
---|
99 | can be used. The unikernel can be used in a system with multiple hardware
|
---|
100 | processors and kernel threads but does not take advantage of either of these
|
---|
101 | capabilities. The multikernel can be used on a system with a single hardware
|
---|
102 | processor and kernel threads but performs less efficiently than the unikernel
|
---|
103 | because it uses multiprocessor techniques unnecessarily.
|
---|
104 | .DS B
|
---|
105 | +-----------+-------------------------+
|
---|
106 | | no kernel | kernel |
|
---|
107 | | threads | threads |
|
---|
108 | +----------+-----------+-------------------------+
|
---|
109 | |single |uni: yes |uni: yes |
|
---|
110 | |processor |multi: no |multi: yes (inefficient) |
|
---|
111 | +----------+-----------+-------------------------+
|
---|
112 | |multiple |uni: yes |uni: yes (no parallelism)|
|
---|
113 | |processors|multi: no |multi: yes |
|
---|
114 | +----------+-----------+-------------------------+
|
---|
115 | .DE
|
---|
116 | .SH PREPROCESSOR VARIABLES
|
---|
117 | When programs are compiled using u++, the following preprocessor variables are
|
---|
118 | available. These variables allow conditional compilation of programs that must
|
---|
119 | work differently in these situations.
|
---|
120 | .IP __U_CPLUSPLUS__ 3
|
---|
121 | is always available during preprocessing and its value is the current major
|
---|
122 | version number.
|
---|
123 | .IP __U_CPLUSPLUS_MINOR__
|
---|
124 | is always available during preprocessing and its value is the current minor
|
---|
125 | version number.
|
---|
126 | .IP __U_CPLUSPLUS_PATCH__
|
---|
127 | is always available during preprocessing and its value is the current patch
|
---|
128 | version number.
|
---|
129 | .IP __U_DEBUG__
|
---|
130 | is available during preprocessing if the -debug compilation option is
|
---|
131 | specified.
|
---|
132 | .IP __U_YIELD__
|
---|
133 | is available during preprocessing if the -yield compilation option is
|
---|
134 | specified.
|
---|
135 | .IP __U_VERIFY__
|
---|
136 | is available during preprocessing if the -verify compilation option is
|
---|
137 | specified.
|
---|
138 | .IP __U_MULTI__
|
---|
139 | is available during preprocessing if the -multi compilation option is specified.
|
---|
140 | .SH FILES
|
---|
141 | .DS B
|
---|
142 | file.{cc,C} - uC++ source file
|
---|
143 | .br
|
---|
144 | file.s - assembly language file
|
---|
145 | .br
|
---|
146 | file.o - object file
|
---|
147 | .br
|
---|
148 | \*(Ho/bin/u++ - translator
|
---|
149 | .br
|
---|
150 | \*(Ho/\*(Vr/doc - reference manual and license
|
---|
151 | .br
|
---|
152 | \*(Ho/\*(Vr/inc - header files
|
---|
153 | .br
|
---|
154 | \*(Ho/\*(Vr/lib - run time libraries
|
---|
155 | .br
|
---|
156 | \*(Ho/\*(Vr/man - command documentation
|
---|
157 | .br
|
---|
158 | \*(Ho/\*(Vr/src - source code (optional)
|
---|
159 | .DE
|
---|
160 | .SH SEE ALSO
|
---|
161 | CC(1), cpp(1), g++(1)
|
---|
162 | .br
|
---|
163 | .I "uC++ Annotated Reference Manual"
|
---|
164 | .br
|
---|
165 | .I "Understanding Control Flow with Concurrent Programming using uC++"
|
---|
166 | .SH REFERENCES
|
---|
167 | .HP 3
|
---|
168 | .I "uC++: Concurrency in the Object-Oriented Language C++,"
|
---|
169 | by P.A. Buhr, G. Ditchfield, R.A. Stroobosscher, B.M. Younger, C.R. Zarnke;
|
---|
170 | Software-Practise and Experience, 22(2):137--172, February 1992. This paper
|
---|
171 | describes uC++ v2.0, which has been significantly extended.
|
---|
172 | .HP
|
---|
173 | .I "Examining uC++,"
|
---|
174 | by Peter A. Buhr and Richard C. Bilson;
|
---|
175 | Dr. Dobb's Journal : Software Tools for the Professional Programmer,
|
---|
176 | 31(2):36--40, February 2006. <http://drdobbs.com/cpp/184406431>
|
---|
177 | .HP
|
---|
178 | .I "uC++ Annotated Reference Manual"
|
---|
179 | most up-to-date features.
|
---|
180 | .SH BUGS
|
---|
181 | Bugs should be reported to usystem@plg.uwaterloo.ca.
|
---|
182 | .SH COPYRIGHT
|
---|
183 | This library is covered under the GNU Lesser General Public License.
|
---|
184 | .SH AUTHORS
|
---|
185 | Peter A. Buhr (pabuhr@plg.uwaterloo.ca) and many others, Programming Languages
|
---|
186 | Group, University of Waterloo, Ontario, Canada, N2L 3G1.
|
---|