annotate doc/manual/x35.html @ 269:6cbc409ff09f 2.6

Added asprintf redux
author lost
date Tue, 22 Dec 2009 05:53:05 +0000
parents 61d1db1dfe2a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
264
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
2 <HTML
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
3 ><HEAD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
4 ><TITLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
5 >Object Files</TITLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
6 ><META
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
7 NAME="GENERATOR"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
9 REL="HOME"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
10 TITLE="LW Tool Chain"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
11 HREF="index.html"><LINK
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
12 REL="UP"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
13 TITLE="Output Formats"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
14 HREF="c18.html"><LINK
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
15 REL="PREVIOUS"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
16 TITLE="OS9 Modules"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
17 HREF="x29.html"><LINK
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
18 REL="NEXT"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
19 TITLE="LWASM"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
20 HREF="c43.html"></HEAD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
21 ><BODY
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
22 CLASS="SECTION"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
23 BGCOLOR="#FFFFFF"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
24 TEXT="#000000"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
25 LINK="#0000FF"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
26 VLINK="#840084"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
27 ALINK="#0000FF"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
28 ><DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
29 CLASS="NAVHEADER"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
30 ><TABLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
31 SUMMARY="Header navigation table"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
32 WIDTH="100%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
33 BORDER="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
34 CELLPADDING="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
35 CELLSPACING="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
36 ><TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
37 ><TH
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
38 COLSPAN="3"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
39 ALIGN="center"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
40 >LW Tool Chain</TH
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
41 ></TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
42 ><TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
43 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
44 WIDTH="10%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
45 ALIGN="left"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
46 VALIGN="bottom"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
47 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
48 HREF="x29.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
49 ACCESSKEY="P"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
50 >Prev</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
51 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
52 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
53 WIDTH="80%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
54 ALIGN="center"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
55 VALIGN="bottom"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
56 >Chapter 2. Output Formats</TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
57 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
58 WIDTH="10%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
59 ALIGN="right"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
60 VALIGN="bottom"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
61 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
62 HREF="c43.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
63 ACCESSKEY="N"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
64 >Next</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
65 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
66 ></TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
67 ></TABLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
68 ><HR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
69 ALIGN="LEFT"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
70 WIDTH="100%"></DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
71 ><DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
72 CLASS="SECTION"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
73 ><H1
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
74 CLASS="SECTION"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
75 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
76 NAME="AEN35"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
77 >2.4. Object Files</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
78 ></H1
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
79 ><P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
80 >LWASM supports generating a proprietary object file format which is
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
81 described in <A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
82 HREF="c817.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
83 >Chapter 6</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
84 >. LWLINK is then used to link these
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
85 object files into a final binary in any of LWLINK's supported binary
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
86 formats.</P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
87 ><P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
88 >Object files also support the concept of sections which are not valid
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
89 for other output types. This allows related code from each object file
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
90 linked to be collapsed together in the final binary.</P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
91 ><P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
92 >Object files are very flexible in that they allow references that are not
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
93 known at assembly time to be resolved at link time. However, because the
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
94 addresses of such references are not known at assembly time, there is no way
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
95 for the assembler to deduce that an eight bit addressing mode is possible.
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
96 That means the assember will default to using sixteen bit addressing
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
97 whenever an external or cross-section reference is used.</P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
98 ><P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
99 >As of LWASM 2.4, it is possible to force direct page addressing for an
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
100 external reference. Care must be taken to ensure the resulting addresses
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
101 are really in the direct page since the linker does not know what the direct
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
102 page is supposed to be and does not emit errors for byte overflows.</P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
103 ><P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
104 >It is also possible to use external references in an eight bit immediate
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
105 mode instruction. In this case, only the low order eight bits will be used.
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
106 Again, no byte overflows will be flagged.</P
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
107 ></DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
108 ><DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
109 CLASS="NAVFOOTER"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
110 ><HR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
111 ALIGN="LEFT"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
112 WIDTH="100%"><TABLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
113 SUMMARY="Footer navigation table"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
114 WIDTH="100%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
115 BORDER="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
116 CELLPADDING="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
117 CELLSPACING="0"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
118 ><TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
119 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
120 WIDTH="33%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
121 ALIGN="left"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
122 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
123 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
124 HREF="x29.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
125 ACCESSKEY="P"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
126 >Prev</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
127 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
128 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
129 WIDTH="34%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
130 ALIGN="center"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
131 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
132 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
133 HREF="index.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
134 ACCESSKEY="H"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
135 >Home</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
136 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
137 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
138 WIDTH="33%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
139 ALIGN="right"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
140 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
141 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
142 HREF="c43.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
143 ACCESSKEY="N"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
144 >Next</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
145 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
146 ></TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
147 ><TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
148 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
149 WIDTH="33%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
150 ALIGN="left"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
151 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
152 >OS9 Modules</TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
153 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
154 WIDTH="34%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
155 ALIGN="center"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
156 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
157 ><A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
158 HREF="c18.html"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
159 ACCESSKEY="U"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
160 >Up</A
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
161 ></TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
162 ><TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
163 WIDTH="33%"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
164 ALIGN="right"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
165 VALIGN="top"
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
166 >LWASM</TD
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
167 ></TR
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
168 ></TABLE
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
169 ></DIV
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
170 ></BODY
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
171 ></HTML
61d1db1dfe2a Build manual for release
lost
parents:
diff changeset
172 >