Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / cemcom / cemcom.1
1 .TH EM_CEMCOM 6 "$Revision: 3.10 $"
2 .ad
3 .SH NAME
4 em_cemcom \- C to EM compiler
5 .SH SYNOPSIS
6 .B ~/em/lib.bin/em_cemcom
7 [ options ] source [ destination [ namelist ] ]
8 .SH DESCRIPTION
9 \fICemcom\fP is a compiler that translates C programs
10 into EM compact code.
11 The input is taken from \fIsource\fP, while the
12 EM code is written on \fIdestination\fP.
13 If either of these two names is "\fB-\fP", standard input or output respectively
14 is taken.
15 The file \fInamelist\fP, if supplied, will contain a list of the names
16 of external, so-called \fBcommon\fP, variables.
17 When the preprocessor is invoked to run stand-alone, \fIdestination\fP
18 needs not be specified.
19 .br
20 \fIOptions\fP is a, possibly empty, sequence of the following combinations:
21 .IP \fB\-D\fIname\fR=\fItext\fR
22 .br
23 define \fIname\fR as a macro with \fItext\fR as its replacement text.
24 .IP \fB\-D\fIname\fR
25 .br
26 the same as \fB\-D\fIname\fR=1.
27 .IP \fB\-I\fIdirname\fR
28 .br
29 insert \fIdirname\fR in the list of include directories.
30 .IP \fB\-M\fP\fIn\fP
31 set maximum identifier length to \fIn\fP.
32 .IP \fB\-g\fP
33 produce a DBX-style symbol table.
34 .IP \fB\-n\fR
35 do not generate EM register messages.
36 The user-declared variables are not stored into registers on the target
37 machine.
38 .IP \fB\-L\fR
39 don't generate the EM \fBfil\fR and \fBlin\fR instructions 
40 that usually are generated to enable
41 an interpreter to keep track of the current location in the source code.
42 .IP \fB\-p\fR
43 generate code at each procedure entry to call the routine
44 .BR procentry ,
45 and at each return to call the routine
46 .BE procexit .
47 These routines are supplied with one parameter, a pointer to a
48 string containing the name of the procedure.
49 .IP \fB\-A\fR[\fIfile\fR]
50 .br
51 if \fIfile\fR is not given, generate a list
52 of makefile dependencies and write them to the standard output.
53 If \fIfile\fP is given,
54 generate the list of makefile dependencies on file \fIfile\fP.
55 .IP \fB\-i\fR
56 when generating makefile dependencies, do not include files from
57 /usr/include.
58 .IP \fB\-m\fR
59 when generating makefile dependencies, generate them in the following format:
60 .RS
61 .IP "file.o: file1.h"
62 .RE
63 .IP ""
64 where "file.o" is derived from the source file name. Normally, only a list
65 of files included is generated.
66 .IP \fB\-R\fR
67 interpret the input as restricted C (according to the language as 
68 described in \fIThe C programming language\fR by Kernighan and Ritchie.)
69 .IP \fB\-U\fIname\fR
70 .br
71 get rid of the compiler-predefined macro \fIname\fR.
72 .IP \fB\-V\fIcm\fR.\fIn\fR,\ \fB\-V\fIcm\fR.\fIncm\fR.\fIn\fR\ ...
73 .br
74 set the size and alignment requirements.
75 The letter \fIc\fR indicates the simple type, which is one of
76 \fBs\fR(short), \fBi\fR(int), \fBl\fR(long), \fBf\fR(float), \fBd\fR(double) or
77 \fBp\fR(pointer).
78 The \fIm\fR parameter can be used to specify the length of the type (in bytes)
79 and the \fIn\fR parameter for the alignment of that type.
80 Absence of \fIm\fR or \fIn\fR causes the default value to be retained.
81 To specify that the bitfields should be right adjusted instead of the
82 default left adjustment, specify \fBr\fR as \fIc\fR parameter.
83 .IP \fB\-w\fR
84 suppress warning messages
85 .IP \fB\-\-\fItext\fR
86 .br
87 where \fItext\fR can be either of the above or
88 a debug flag of the compiler (which is not useful for the common user.)
89 This feature can be used in various shell scripts and surrounding programs
90 to force a certain option to be handed over to \fBcemcom\fR.
91 .LP
92 .SH FILES
93 .IR ~em/lib.bin/em_cemcom :
94 the compiler
95 .SH DIAGNOSTICS
96 All warning and error messages are written on standard error output.
97 .SH REFERENCE
98 Baalbergen, E.H., D. Grune, M. Waage ;"\fIThe CEM compiler\fR", 
99 Informatica Manual IM-4