annotate doc/manual/x400.html @ 285:9010796c6253 2.3 2.3.1

Generated manual for distribution
author lost
date Fri, 24 Apr 2009 22:36:09 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
285
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
2 <HTML
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
3 ><HEAD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
4 ><TITLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
5 >Object Files and Sections</TITLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
6 ><META
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
7 NAME="GENERATOR"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
9 REL="HOME"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
10 TITLE="LW Tool Chain"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
11 HREF="index.html"><LINK
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
12 REL="UP"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
13 TITLE="LWASM"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
14 HREF="c35.html"><LINK
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
15 REL="PREVIOUS"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
16 TITLE="Macros"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
17 HREF="x378.html"><LINK
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
18 REL="NEXT"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
19 TITLE="Assembler Modes and Pragmas"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
20 HREF="x458.html"></HEAD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
21 ><BODY
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
22 CLASS="SECTION"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
23 BGCOLOR="#FFFFFF"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
24 TEXT="#000000"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
25 LINK="#0000FF"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
26 VLINK="#840084"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
27 ALINK="#0000FF"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
28 ><DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
29 CLASS="NAVHEADER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
30 ><TABLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
31 SUMMARY="Header navigation table"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
32 WIDTH="100%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
33 BORDER="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
34 CELLPADDING="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
35 CELLSPACING="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
36 ><TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
37 ><TH
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
38 COLSPAN="3"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
39 ALIGN="center"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
40 >LW Tool Chain</TH
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
41 ></TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
42 ><TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
43 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
44 WIDTH="10%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
45 ALIGN="left"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
46 VALIGN="bottom"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
47 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
48 HREF="x378.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
49 ACCESSKEY="P"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
50 >Prev</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
51 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
52 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
53 WIDTH="80%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
54 ALIGN="center"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
55 VALIGN="bottom"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
56 >Chapter 3. LWASM</TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
57 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
58 WIDTH="10%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
59 ALIGN="right"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
60 VALIGN="bottom"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
61 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
62 HREF="x458.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
63 ACCESSKEY="N"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
64 >Next</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
65 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
66 ></TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
67 ></TABLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
68 ><HR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
69 ALIGN="LEFT"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
70 WIDTH="100%"></DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
71 ><DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
72 CLASS="SECTION"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
73 ><H1
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
74 CLASS="SECTION"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
75 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
76 NAME="AEN400"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
77 >3.8. Object Files and Sections</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
78 ></H1
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
79 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
80 >The object file target is very useful for large project because it allows
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
81 multiple files to be assembled independently and then linked into the final
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
82 binary at a later time. It allows only the small portion of the project
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
83 that was modified to be re-assembled rather than requiring the entire set
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
84 of source code to be available to the assembler in a single assembly process.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
85 This can be particularly important if there are a large number of macros,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
86 symbol definitions, or other metadata that uses resources at assembly time.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
87 By far the largest benefit, however, is keeping the source files small enough
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
88 for a mere mortal to find things in them.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
89 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
90 >With multi-file projects, there needs to be a means of resolving references to
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
91 symbols in other source files. These are known as external references. The
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
92 addresses of these symbols cannot be known until the linker joins all the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
93 object files into a single binary. This means that the assembler must be
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
94 able to output the object code without knowing the value of the symbol. This
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
95 places some restrictions on the code generated by the assembler. For
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
96 example, the assembler cannot generate direct page addressing for instructions
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
97 that reference external symbols because the address of the symbol may not
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
98 be in the direct page. Similarly, relative branches and PC relative addressing
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
99 cannot be used in their eight bit forms. Everything that must be resolved
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
100 by the linker must be assembled to use the largest address size possible to
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
101 allow the linker to fill in the correct value at link time. Note that the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
102 same problem applies to absolute address references as well, even those in
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
103 the same source file, because the address is not known until link time.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
104 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
105 >It is often desired in multi-file projects to have code of various types grouped
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
106 together in the final binary generated by the linker as well. The same applies
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
107 to data. In order for the linker to do that, the bits that are to be grouped
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
108 must be tagged in some manner. This is where the concept of sections comes in.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
109 Each chunk of code or data is part of a section in the object file. Then,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
110 when the linker reads all the object files, it coalesces all sections of the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
111 same name into a single section and then considers it as a unit.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
112 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
113 >The existence of sections, however, raises a problem for symbols even
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
114 within the same source file. Thus, the assembler must treat symbols from
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
115 different sections within the same source file in the same manner as external
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
116 symbols. That is, it must leave them for the linker to resolve at link time,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
117 with all the limitations that entails.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
118 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
119 >In the object file target mode, LWASM requires all source lines that
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
120 cause bytes to be output to be inside a section. Any directives that do
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
121 not cause any bytes to be output can appear outside of a section. This includes
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
122 such things as EQU or RMB. Even ORG can appear outside a section. ORG, however,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
123 makes no sense within a section because it is the linker that determines
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
124 the starting address of the section's code, not the assembler.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
125 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
126 >All symbols defined globally in the assembly process are local to the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
127 source file and cannot be exported. All symbols defined within a section are
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
128 considered local to the source file unless otherwise explicitly exported.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
129 Symbols referenced from external source files must be declared external,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
130 either explicitly or by asking the assembler to assume that all undefined
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
131 symbols are external.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
132 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
133 >It is often handy to define a number of memory addresses that will be
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
134 used for data at run-time but which need not be included in the binary file.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
135 These memory addresses are not initialized until run-time, either by the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
136 program itself or by the program loader, depending on the operating environment.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
137 Such sections are often known as BSS sections. LWASM supports generating
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
138 sections with a BSS attribute set which causes the section definition including
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
139 symbols exported from that section and those symbols required to resolve
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
140 references from the local file, but with no actual code in the object file.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
141 It is illegal for any source lines within a BSS flagged section to cause any
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
142 bytes to be output.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
143 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
144 >The following directives apply to section handling.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
145 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
146 ></P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
147 ><DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
148 CLASS="VARIABLELIST"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
149 ><DL
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
150 ><DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
151 >SECTION <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
152 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
153 >name[,flags]</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
154 >, SECT <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
155 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
156 >name[,flags]</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
157 >, .AREA <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
158 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
159 >name[,flags]</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
160 ></DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
161 ><DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
162 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
163 >Instructs the assembler that the code following this directive is to be
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
164 considered part of the section <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
165 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
166 >name</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
167 >. A section name
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
168 may appear multiple times in which case it is as though all the code from
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
169 all the instances of that section appeared adjacent within the source file.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
170 However, <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
171 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
172 >flags</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
173 > may only be specified on the first
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
174 instance of the section.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
175 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
176 >There is a single flag supported in <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
177 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
178 >flags</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
179 >. The
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
180 flag <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
181 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
182 >bss</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
183 > will cause the section to be treated as a BSS
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
184 section and, thus, no code will be included in the object file nor will any
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
185 bytes be permitted to be output.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
186 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
187 >If the section name is "bss" or ".bss" in any combination of upper and
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
188 lower case, the section is assumed to be a BSS section. In that case,
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
189 the flag <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
190 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
191 >!bss</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
192 > can be used to override this assumption.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
193 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
194 >If assembly is already happening within a section, the section is implicitly
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
195 ended and the new section started. This is not considered an error although
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
196 it is recommended that all sections be explicitly closed.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
197 ></DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
198 ><DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
199 >ENDSECTION, ENDSECT, ENDS</DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
200 ><DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
201 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
202 >This directive ends the current section. This puts assembly outside of any
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
203 sections until the next SECTION directive.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
204 ></DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
205 ><DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
206 ><CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
207 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
208 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
209 > EXTERN, <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
210 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
211 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
212 > EXTERNAL, <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
213 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
214 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
215 > IMPORT</DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
216 ><DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
217 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
218 >This directive defines <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
219 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
220 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
221 > as an external symbol.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
222 This directive may occur at any point in the source code. EXTERN definitions
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
223 are resolved on the first pass so an EXTERN definition anywhere in the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
224 source file is valid for the entire file. The use of this directive is
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
225 optional when the assembler is instructed to assume that all undefined
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
226 symbols are external. In fact, in that mode, if the symbol is referenced
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
227 before the EXTERN directive, an error will occur.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
228 ></DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
229 ><DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
230 ><CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
231 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
232 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
233 > EXPORT, <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
234 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
235 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
236 > .GLOBL, EXPORT <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
237 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
238 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
239 >, .GLOBL <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
240 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
241 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
242 ></DT
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
243 ><DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
244 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
245 >This directive defines <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
246 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
247 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
248 > as an exported symbol.
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
249 This directive may occur at any point in the source code, even before the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
250 definition of the exported symbol.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
251 ><P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
252 >Note that <CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
253 CLASS="PARAMETER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
254 >sym</CODE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
255 > may appear as the operand or as the
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
256 statement's symbol. If there is a symbol on the statement, that will
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
257 take precedence over any operand that is present.</P
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
258 ></DD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
259 ></DL
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
260 ></DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
261 ></DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
262 ><DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
263 CLASS="NAVFOOTER"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
264 ><HR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
265 ALIGN="LEFT"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
266 WIDTH="100%"><TABLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
267 SUMMARY="Footer navigation table"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
268 WIDTH="100%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
269 BORDER="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
270 CELLPADDING="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
271 CELLSPACING="0"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
272 ><TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
273 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
274 WIDTH="33%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
275 ALIGN="left"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
276 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
277 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
278 HREF="x378.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
279 ACCESSKEY="P"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
280 >Prev</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
281 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
282 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
283 WIDTH="34%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
284 ALIGN="center"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
285 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
286 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
287 HREF="index.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
288 ACCESSKEY="H"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
289 >Home</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
290 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
291 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
292 WIDTH="33%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
293 ALIGN="right"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
294 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
295 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
296 HREF="x458.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
297 ACCESSKEY="N"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
298 >Next</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
299 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
300 ></TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
301 ><TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
302 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
303 WIDTH="33%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
304 ALIGN="left"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
305 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
306 >Macros</TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
307 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
308 WIDTH="34%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
309 ALIGN="center"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
310 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
311 ><A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
312 HREF="c35.html"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
313 ACCESSKEY="U"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
314 >Up</A
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
315 ></TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
316 ><TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
317 WIDTH="33%"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
318 ALIGN="right"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
319 VALIGN="top"
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
320 >Assembler Modes and Pragmas</TD
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
321 ></TR
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
322 ></TABLE
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
323 ></DIV
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
324 ></BODY
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
325 ></HTML
9010796c6253 Generated manual for distribution
lost
parents:
diff changeset
326 >