Skip to main content
Home Documents Game Manuals Consulair Mac C
Consulair Mac C

Consulair Mac C

Game Manuals · PDF
FilenameConsulairMacC.pdf
Size4.86 MB
Subsection Consulair Mac C
Downloads0
Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute metadata corrections, and join the community chat.
Reader
Consulair Mac C
/
Loading…
OCR / Text contents
CHAPTER 1: HOW TO USE THE MAC C COMPILER INTRODUCTION The Mac C Compiler translates programs written in the C programming language into 68000 assembly language for Apple's Macintosh 68000 Development System (MDS). The Compiler is fully integratedwith this developmentsystem and runs on either a standard Macintosh (128K or 512K bytes) with an external drive or hard disk. a Macintosh XL, or a Usa running MacWorks. The C language is defined in The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie. Major differences between Mac C and standard Kernighan and Ritchie C are defined in Appendix A. The Macintosh 68000 Development System consists of an Editor. Assembler, Linker, Executive. and Debugger. It is available from Apple and all parts except the Executive and the Debuggerare required by Mac C. For information on the MDS see the Macintosh 68000 Development System Manual or contact your local Apple dealer. For assembly language information, refer to Motorola's M68000 16132-81t Microprocessor Programmer's Reference Manual, fourth editIon, published by Prentice-Hall, Inc. Information on the Macintosh operating system and run-time library may be obtained from Apple's Inside Macintosh manual. Some references for the C programming languageare: The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie. published by Prentice-Hall, Inc.• and C: A Reference Manual by Samuel P. Harbison and Guy L. Steele, Jr., published by Prentice-Hall, Inc. The remaining sections of this chapter provide a brief overview of the C language, and the sequence of steps the user must follow to compile, link. and execute Mac C programs. OVERVIEW OF THE C LANGUAGE The C programming language, originally developed at BenTelephone Laboratories. was designed as a systems implementation language for the UNIX operating system. It is rapidly becoming the dominant systems impler:nentation language over a wide variety of machinesand systems. . C is a low-level programming language in the sense that important aspects of the hardware can be directly manipulated from within the language. It also includes features of higher-level languages. C supports a number of data types and offers structured control flow and a wide variety of operators. CHAPTER 1: HOW TOUSE THEMACC OOMPILER 1- 2 Data Types C recognizes several elementary data types: signed and unsigned characters (8 bits), signed and unsigned short integers (16 bits).signed and unsigned long integers (32 bits), pointers (32 bits), single-precision floating point numbers (32 bits), double-precision floating point numbers (64 bits), and extended-precision floating point numbers" (80 bits). From these elementary data types, morecomplex collections can be created: arrays of objects, ea…

Showing first 3,000 characters of 273,916 total. Open the full document →

mp.ls