Beruflich Dokumente
Kultur Dokumente
1.7
1.8
1.9
1.10
1.11
1.12
1.13
1.14
1.15
1.16
1.17
1.18
Introduction
What Is a Computer?
Computer Organization
Evolution of Operating Systems
Personal Computing, Distributed Computing and Client/Server
Computing
Machine Languages, Assembly Languages and High-level
Languages
The History of C
The C Standard Library
The Key Software Trend: Object Technology
C++ and C++ How to Program
Java and Java How to Program
Other High-level Languages
Structured Programming
The Basics of a typical C Program Development Environment
Hardware Trends
History of the Internet
History of the World Wide Web
General Notes About C and this Book
1.1 Introduction
1.2
What is a Computer?
Computer
Device capable of performing computations and making logical
decisions
Computers process data under the control of sets of instructions
called computer programs
Hardware
Various devices comprising a computer
Keyboard, screen, mouse, disks, memory, CD-ROM, and
processing units
Software
Input unit
2.
Output unit
3.
6.
5.
Memory unit
4.
Operating systems
Manage transitions between jobs
Increased throughput - amount of work computers process
Multiprogramming
Many jobs or tasks sharing the computer resources
Timesharing
Distributed computing
Computing distributed over networks
Client/server computing
Machine languages
2.
Assembly languages
1.7 History of C
C
Evolved by Ritchie from two previous programming languages,
BCPL and B
Used to develop UNIX
Now, most operating systems written with C or C++
Hardware independent (portable)
By late 1970's C had evolved to "Traditional C"
Standardization
Veryreusable
Moreunderstandable,betterorganized,andeasierto
maintainthanproceduralprogramming
Favormodularity
2000 Prentice Hall, Inc. All rights reserved.
Learning C++
COBOL
Used to manipulate large amounts of data
Pascal
Multitasking
Editor
Preprocessor
Compiler
Linker
Loader
Disk
Programiscreatedin
theeditorandstored
ondisk.
Disk
Preprocessorprogram
processesthecode.
Disk
Compilercreates
objectcodeandstores
itondisk.
Disk
Linkerlinkstheobject
codewiththelibraries,
createsa.outand
storesitondisk
Primary
Memory
Loaderputsprogram
inmemory.
Disk
6. Execute
..
..
..
Primary
Memory
CPU
..
..
..
CPUtakeseach
instructionand
executesit,possibly
storingnewdata
valuesastheprogram
executes.
Packet switching
Transfer digital data via small packets
Allows multiple users to send and receive data simultaneously
No centralized control
If one part of the Internet fails, other parts can still operate
Bandwidth
C is a portable language
Programs can run on many different computers
However, portability is an elusive goal