Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
CHAPTER 1 INTRODUCTION This manual describes XENIX 286 Extended System commands used for developing and maintaining programs. These commands support program development, checking, debugging, maintenance, and version control. Prerequisites This manual presumes that you understand the C programming language and basic programming concepts. This manual also presumes some knowledge of XENIX or UNIX and the standard shell sh. Manual Organ ization This manual contains the following chapters and appendixes: 1. Introduction: manual overview, prerequisites, organization, and notation. 2. cc: C Compiler: the cc command for compiling C programs and assembling and linking the resulting modules. 3. lint: C Program Checker: a program that checks C programs for syntactic and semantic errors. 4. make: Program Maintainer: a program that automates the generation of program files, independent of the programming language or programming tools used. 5. SCCS: Source Code Control System: a set of commands to manipulate multiple versions of a single program or document, stored in a single file instead of in separate files for each version. 6. adb: Program Debugger: a program for debugging C or assembly language programs. 7. as: Assembler: the assembler used to assemble separate assembly language programs. 8. csh: C Shell: a command interpreter that provides greater flexibility and more power than the standard shell sh. 9. lex: Lexical Analyzer Generator: a program that produces another program, called a lexical analyzer, that breaks up an input stream into "tokens," using rules specified to the generator. 1-1
Introduction XENIX Programming 10. yacc: Compiler-Compiler: a program that produces a parser program that translates input according to rules specified to yacc. 11. m4: Macro Processor: a program that processes macros defined and used in its input, producing output with the macros replaced by the text that they stand for. A. C Language Portability: how to write C language programs so that they are portable to other XENIX systems running on other types of hardware. B. Programming Commands: reference information for all the programming commands in the XENIX 286 Extended System. C. Related Publications: a list of related XENIX 286 manuals. Notation These notational conventions are used in this manual: • Literal names are balded where they occur in text, e.g., /sys/include, printf, dev_tab, EOF. • Syntactic categories are italicized where they occur and indicate that you must substitute an instance of the category, e.g., filename. • In examples of dialogue with the XENIX 286 system, characters entered by the user are balded. • In syntax descriptions, optional items are enclosed in brackets ( [] ). • Items that can be repeated one or more times are followed by an ellipsis ( ••• ). • Items that can be repeated zero or more times are enclosed in brackets and followed by an ellipsis ( [ ] ••• ). • A choice between items is indicated by separating the items with vertical bars ( I ). 1-2
- 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: Table of Contents TABLES TABLE TITL
- 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 and 38: cc: C Compiler XENIX Programming d
- Page 39 and 40: cc: C Compiler XENIX Programming Se
- 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
Introduction <strong>XENIX</strong> Programming<br />
10. yacc: Compiler-Compiler: a program that produces a parser program that<br />
translates input according to rules specified to yacc.<br />
11. m4: Macro Processor: a program that processes macros defined and used in its<br />
input, producing output with the macros replaced by the text that they stand for.<br />
A. C Language Portability: how to write C language programs so that they are<br />
portable to other <strong>XENIX</strong> systems running on other types of hardware.<br />
B. Programming Commands: reference information for all the programming<br />
commands in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> Extended System.<br />
C. Related Publications: a list of related <strong>XENIX</strong> <strong>2<strong>86</strong></strong> manuals.<br />
Notation<br />
These notational conventions are used in this manual:<br />
• Literal names are balded where they occur in text, e.g., /sys/include, printf,<br />
dev_tab, EOF.<br />
• Syntactic categories are italicized where they occur and indicate that you must<br />
substitute an instance of the category, e.g., filename.<br />
• In examples of dialogue with the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> system, characters entered by the<br />
user are balded.<br />
• In syntax descriptions, optional items are enclosed in brackets ( [] ).<br />
• Items that can be repeated one or more times are followed by an ellipsis ( ••• ).<br />
• Items that can be repeated zero or more times are enclosed in brackets and<br />
followed by an ellipsis ( [ ] ••• ).<br />
• A choice between items is indicated by separating the items with vertical bars<br />
( I ).<br />
1-2