Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming cc: C Compiler Many options (or equivalent forms of these options) are passed to the link editor as the last phase of compilation. The s, m, and 1 configuration options are passed to specify memory requirements. The -i, -F, and -p are passed to specify other characteristics of the final program. The -D and -1 options may be used several times on the command line. The -D option must not define the same name twice. These options affect subsequent source files only. Memory Models Table 2-2 defines the number of text and data segments for the different program memory models. This table also lists the segment register values. * Table 2-2. Segments in Program Memory Models Model Text Data Small 1* 1* Middle 1 per module 1 Large 1 per module 1 per module Huge 1 per module 1 per module In impure-text small model programs, text and data occupy the same segment. In pure-text programs, they occupy different segments. Pointer and Integer Sizes Table 2-3 defines the sizes (in bits) of text and data pointers, in each program memory model. The integer (int type) size for compilers that run on the 80286 is 16 bits. Table 2-3. Pointer and Integer Sizes in Program Memory Models Model Data Pointer Text Pointer Small 16 16 Middle 16 32 Large 32 32 Huge 32 32 2-23
cc: C Compiler XENIX Programming Segment and Module Names Table 2-4 lists the default text and data segment names, and the default module name, for each object file. Table 2-4. Default Segment and Module Names Model Text Data Small TEXT DATA - Middle module* TEXT DATA - Large module* TEXT DATA Huge module*_TEXT DATA * module is the filename of the program being compiled without the .c extension. 2-24
- Page 1 and 2: 0 • • •
- Page 3 and 4: The information in this document is
- Page 5 and 6: Table of Contents CONTENTS Compiler
- Page 7 and 8: Table of Contents CONTENTS Using Ot
- Page 9 and 10: Table of Contents CONTENTS Assemble
- Page 11 and 12: Table of Contents CONTENTS CHAPTER
- Page 13 and 14: Table of Contents TABLES TABLE TITL
- Page 15 and 16: Introduction XENIX Programming 10.
- Page 17 and 18: cc: C Compiler XENIX Programming Cr
- Page 19 and 20: cc: C Compiler XENIX Programming Th
- Page 21 and 22: cc: C Compiler XENIX Programming Th
- Page 23 and 24: cc: C Compiler XENIX Programming Cr
- Page 25 and 26: cc: C Compiler XENIX Programming Th
- Page 27 and 28: cc: C Compiler XENIX Programming Co
- Page 29 and 30: cc: C Compiler XENIX Programming Sa
- Page 31 and 32: cc: C Compiler XENIX Programming Us
- Page 33 and 34: cc: C Compiler XENIX Programming Wh
- Page 35 and 36: cc: C Compiler XENIX Programming Co
- Page 37: cc: C Compiler XENIX Programming d
- Page 41 and 42: lint: C Program Checker XENIX Progr
- Page 43 and 44: lint: C Program Checker XENIX Progr
- Page 45 and 46: lint: C Program Checker XENIX Progr
- Page 47 and 48: lint: C Program Checker XENIX Progr
- Page 49 and 50: lint: C Program Checker XENIX Progr
- Page 51 and 52: lint: C Program Checker XENIX Progr
- Page 53 and 54: make: Program Maintainer XENIX Prog
- Page 55 and 56: make: Program Maintainer XENIX Prog
- Page 57 and 58: make: Program Maintainer XENIX Prog
- Page 59 and 60: make: Program Maintainer XENIX Prog
- Page 61 and 62: make: Program Maintainer XENIX Prog
- Page 63 and 64: make: Program Maintainer XENIX Prog
- Page 65 and 66: make: Program Maintainer print: $(F
- Page 67 and 68: SCCS: Source Code Control System XE
- Page 69 and 70: SCCS: Source Code Control System XE
- Page 71 and 72: SCCS: Source Code Control System XE
- Page 73 and 74: SCCS: Source Code Control System XE
- Page 75 and 76: SCCS: Source Code Control System XE
- Page 77 and 78: SCCS: Source Code Control System XE
- Page 79 and 80: SCCS: Source Code Control System XE
- Page 81 and 82: SCCS: Source Code Control System XE
- Page 83 and 84: SCCS: Source Code Control System XE
- Page 85 and 86: SCCS: Source Code Control System XE
- Page 87 and 88: SCCS: Source Code Control System XE
cc: C Compiler <strong>XENIX</strong> Programming<br />
Segment and Module Names<br />
Table 2-4 lists the default text and data segment names, and the default module name,<br />
for each object file.<br />
Table 2-4. Default Segment and Module Names<br />
Model Text Data<br />
Small TEXT DATA<br />
-<br />
Middle module* TEXT DATA<br />
-<br />
Large module* TEXT DATA<br />
Huge module*_TEXT DATA<br />
* module is the filename of the program being compiled without the .c extension.<br />
2-24