annotate docs/nitros9guide/cc.refentry @ 3076:d28d94edee79

Found SDFLAGS from level1/coco1/modules/makefile was missing. Added line.
author David Ladd <drencor-xeen@users.sf.net>
date Mon, 23 Feb 2015 15:00:06 -0600
parents b00cf13c9f61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
920
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
1 <refentry id="cc">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
2 <refnamediv>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
3 <refname>CC</refname>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
4 <refpurpose>C Compiler</refpurpose>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
5 </refnamediv>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
6
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
7 <refsynopsisdiv>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
8 <cmdsynopsis>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1053
diff changeset
9 <command>cc</command>
920
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
10 <arg>options</arg>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
11 <arg rep="repeat" choice="plain"><replaceable>file</replaceable></arg>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
12 <arg>options</arg>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
13 </cmdsynopsis>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
14 </refsynopsisdiv>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
15
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
16 <refsect1><title>Description</title>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
17 <para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
18 The are two commands which invoke distinct versions of the
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
19 compiler. <command>cc1</command> is for NitrOS-9 Level 1 which uses a two pass compiler,
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
20 and, <command>cc2</command> is for Level 2 which causes a single pass version. Both
920
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
21 versions of the compiler works identically, the main difference is
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 920
diff changeset
22 that <command>cc1</command> has been divided into two passes to fit the smaller memory
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
23 size of NitrOS-9 Level 1. In the following text, "cc" refers to
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 920
diff changeset
24 either <command>cc1</command> or <command>cc2</command> as appropiate for your system.
920
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
25 </para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
26 </refsect1>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
27 <refsect1><title>Options</title>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
28 <para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
29 Recognized options: (UPPER and lower case is equiv.)
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
30 </para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
31 <informaltable frame="none">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
32 <tgroup cols="2">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
33 <colspec colwidth="0.9in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
34 <colspec colwidth="3.0in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
35 <tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
36 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
37 <entry>-a</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
38 <entry>Suppress assembly. Leave output in ".a" file.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
39 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
40 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
41 <entry>-e=n</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
42 <entry>Edition number (n) is supplied to c.prep for
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
43 inclusion in module psect and/or to c.link for
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
44 inclusion as the edition number of the linked
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
45 module.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
46 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
47 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
48 <entry>-o</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
49 <entry>Inhibits assembly code optimizer pass.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
50 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
51 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
52 <entry>-p</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
53 <entry>Invoke compiler function profiler.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
54 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
55 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
56 <entry>-r</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
57 <entry>Suppress link step. Leave output in ".r" file.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
58 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
59 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
60 <entry>-m=<replaceable>size</replaceable></entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
61 <entry>Size in pages (in kbytes if followed by a K) of
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
62 additional memory the linker should allocate to
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
63 object module.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
64 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
65 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
66 <entry>-l=<replaceable>path</replaceable></entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
67 <entry>Library file for linker to search before the standard library.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
68 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
69 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
70 <entry>-f=<replaceable>path</replaceable></entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
71 <entry>Override other output naming. Module name (in
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
72 object module) is the last name in the pathlist.
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
73 -f is not allowed with -a or -r.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
74 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
75 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
76 <entry>-c</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
77 <entry>Output comments in assembly language code.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
78 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
79 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
80 <entry>-s</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
81 <entry>Suppress generation of stack-checking code.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
82 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
83 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
84 <entry>-d<replaceable>NAME</replaceable></entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
85 <entry>Is equivalent to #define <replaceable>NAME</replaceable> 1 in the
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
86 preprocessor. -d<replaceable>NAME</replaceable>=<replaceable>STRING</replaceable>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
87 is equivalent
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
88 to #define <replaceable>NAME</replaceable> <replaceable>STRING</replaceable>.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
89 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
90 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
91 <entry>-n=<replaceable>name</replaceable></entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
92 <entry>output module name. <replaceable>name</replaceable> is used to override
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
93 the -f default output name.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
94 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
95 </tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
96 </tgroup>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
97 </informaltable>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
98 <para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
99 CC1 only:
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
100 </para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
101 <informaltable frame="none">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
102 <tgroup cols="2">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
103 <colspec colwidth="0.9in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
104 <colspec colwidth="3.0in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
105 <tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
106 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
107 <entry>-x</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
108 <entry>Create, but do not execute c.com command file.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
109 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
110 </tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
111 </tgroup>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
112 </informaltable>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
113 <para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
114 CC2 only:
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
115 </para>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
116 <informaltable frame="none">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
117 <tgroup cols="2">
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
118 <colspec colwidth="0.9in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
119 <colspec colwidth="3.0in"/>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
120 <tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
121 <row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
122 <entry>-q</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
123 <entry>Quiet mode. Suppress echo of file names.</entry>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
124 </row>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
125 </tbody>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
126 </tgroup>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
127 </informaltable>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
128 </refsect1>
cfed0d7751f3 Added basic09, cc and runb to the user's guide
roug
parents:
diff changeset
129 </refentry>