annotate docs/ccguide/chap2.chapter @ 468:60b821f18853

A little here and there.
author roug
date Thu, 03 Oct 2002 21:39:06 +0000
parents bea58398bb15
children c43b678c0055
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <chapter>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <title>Characteristics of Compiled Programs</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
3
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
4 <section>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5 <title>The Object Code Module</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6 <para>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
7 The compiler produces position-independent, reentrant 6809 code
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
8 in a standard OS-9 memory module format. The format of an executable
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
9 program module is shown below. Detailed descriptions of each
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 section of the module are given on following pages.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
11 </para>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
12 <informalfigure>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
13 <screen>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
14 Module
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
15 Offset
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
17 +-------------------------------+
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
18 ! !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
19 ! Module Header !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
20 ! !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
21 !-------------------------------!
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
22 ! Execution Offset !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
23 !-------------------------------!
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
24 ! Permanent Storage Size !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
25 !-------------------------------!
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
26 ! Data-text Reference Count !
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
27 v v
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
28 : Data-text Reference Offsets :
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
29 ^ ^
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
30 </screen>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
31 </informalfigure>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
32 <section>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
33 <title>Module Header</title>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
34 <para>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
35 This is a standard module header with the type/language byte set to
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
36 $11 (Program + 6809 Object Code), and the attribute/revision byte
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
37 set to $81 (Reentrant + 1).
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
38 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
39 </section>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
40 </section>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
41 </chapter>