cemcom.ansi.1 3.6 KB

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