C Language Tutorial
C Language Tutorial Version 0.042 March, 1999 Original MS-DOS tutorial by Gordon Dodrill, Coronado Enterprises. Moved to Applix by Tim Ward Typed by Karen Ward C programs converted by Tim …
The C programming language was originally developed by Dennis Ritchieof Bell Laboratories, and was designed to run ona PDP-11 with a UNIX operating system. Although it was originally intended to run under UNIX , there was a great interest in running it on the IBM PC and compatibles, and other systems. Cis excellent for actually writing system level programs, and the entireApplix 1616/OS operating system is written in C (except fora few assembler routines). It is an excellent language for this environment because of the simplicity of expression, the compactness of the code, and the wide range of applicability. It is nota good “beginning”language because it is somewhat cryptic in nature. It allows the programmer a wide range of operations from high level down to a very low level approaching the level of assembly language. There seems to be no limit to the flexibility available. One experiencedC programmer made the statement, “You can program anything in C”, and the statement is well supported by my own experience with the language. Along with the resulting freedom however, you take on a great deal of responsibility. It is very easy to write a program that destroys itself due to the silly little errors that, say, a Pascal compiler will flag and calla fatal error. InC, you are very much on your own, as you will soon find. C Boot Disk. Make anew, bootable copy of your 1616 User disk, following the directions in your Users Manual . To ensure sufficient space, delete any obviously unwanted files you notice on the copy. Copy the contents of your HiTech Cdistribution disk to the new disk, keeping the subdirectories the same as on the HiTech disk. If you have received any updated Cheaderfilesor other updates, copy these also to their respective subdirectories on your new disk. Using edit, alter thexpathand assign commands in yourautoexec.shell file in the root directory of your new disk. Your xpathshould include/F0/bin (if it is not already included). Add the following lines to yourautoexec.shell , to recreate the environment used by Tim Ward when originally running these programs. assign/hitech/f0/bin assign/sys/f0/include assign/temp/rd This will allow code to be written without regard to where you actually put your files. If you are using a second drive, ora hard disk, simply change the assign to point /hitechtothe correct drive. Ctendstouse temporary files extensively. If you have sufficient memory available on your ram disk, use /rdfortemporary files. If not, use the current drive and…
Source: http://phy.ntnu.edu.tw/
Download C Language Tutorial
Leave a Reply