cemcom.1 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .TH EM_CEMCOM 6 "$Revision$"
  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\-n\fR
  33. do not generate EM register messages.
  34. The user-declared variables are not stored into registers on the target
  35. machine.
  36. .IP \fB\-L\fR
  37. don't generate the EM \fBfil\fR and \fBlin\fR instructions
  38. that usually are generated to enable
  39. an interpreter to keep track of the current location in the source code.
  40. .IP \fB\-p\fR
  41. generate code at each procedure entry to call the routine
  42. .BR procentry ,
  43. and at each return to call the routine
  44. .BE procexit .
  45. These routines are supplied with one parameter, a pointer to a
  46. string containing the name of the procedure.
  47. .IP \fB\-A\fR[\fIfile\fR]
  48. .br
  49. if \fIfile\fR is not given, generate a list
  50. of makefile dependencies and write them to the standard output.
  51. If \fIfile\fP is given,
  52. generate the list of makefile dependencies on file \fIfile\fP.
  53. .IP \fB\-i\fR
  54. when generating makefile dependencies, do not include files from
  55. /usr/include.
  56. .IP \fB\-m\fR
  57. when generating makefile dependencies, generate them in the following format:
  58. .RS
  59. .IP "file.o: file1.h"
  60. .RE
  61. .IP ""
  62. where "file.o" is derived from the source file name. Normally, only a list
  63. of files included is generated.
  64. .IP \fB\-R\fR
  65. interpret the input as restricted C (according to the language as
  66. described in \fIThe C programming language\fR by Kernighan and Ritchie.)
  67. .IP \fB\-U\fIname\fR
  68. .br
  69. get rid of the compiler-predefined macro \fIname\fR.
  70. .IP \fB\-V\fIcm\fR.\fIn\fR,\ \fB\-V\fIcm\fR.\fIncm\fR.\fIn\fR\ ...
  71. .br
  72. set the size and alignment requirements.
  73. The letter \fIc\fR indicates the simple type, which is one of
  74. \fBs\fR(short), \fBi\fR(int), \fBl\fR(long), \fBf\fR(float), \fBd\fR(double) or
  75. \fBp\fR(pointer).
  76. The \fIm\fR parameter can be used to specify the length of the type (in bytes)
  77. and the \fIn\fR parameter for the alignment of that type.
  78. Absence of \fIm\fR or \fIn\fR causes the default value to be retained.
  79. To specify that the bitfields should be right adjusted instead of the
  80. default left adjustment, specify \fBr\fR as \fIc\fR parameter.
  81. .IP \fB\-w\fR
  82. suppress warning messages
  83. .IP \fB\-\-\fItext\fR
  84. .br
  85. where \fItext\fR can be either of the above or
  86. a debug flag of the compiler (which is not useful for the common user.)
  87. This feature can be used in various shell scripts and surrounding programs
  88. to force a certain option to be handed over to \fBcemcom\fR.
  89. .LP
  90. .SH FILES
  91. .IR ~em/lib/em_cemcom :
  92. the compiler
  93. .SH DIAGNOSTICS
  94. All warning and error messages are written on standard error output.
  95. .SH REFERENCE
  96. Baalbergen, E.H., D. Grune, M. Waage ;"\fIThe CEM compiler\fR",
  97. Informatica Manual IM-4