Professional Documents
Culture Documents
李思
Chapter 1 Introduction to Computer, the Internet and the Web
C++
Java
Python
1.11 软件发展的重要趋势:对象技术
对象 (Objects)
可重复使用的软件组件,在真实世界建模 (Reusable software components that model
items in the real world)
具有特定意义的软件模块 (Meaningful software units)
日期对象、付款对象、发票对象、音频对象、视频对象、文件对象、记录对象等 (D
ate objects, time objects, paycheck objects, invoice objects, audio object
s, video objects, file objects, record objects, etc.)
几乎所有名词都可以表示为一个对象
(Any noun can be represented as an object)
可重复使用 (Very reusable)
更易于理解、结构更优化、比面向过程程序设计更易掌握 (More understandable, bett
er organized, and easier to maintain than procedural programming)
模块化 (Favor modularity)
1.12 典型的 C 语言程序开发环境
程序员用文本编辑器创建程序源代码并将
其 存 储 在 磁 盘 中 (Program is created in the
Editor Dis editor and stored on disk.)
1. Edit 编辑 k 预 处 理 程 序 处 理 源 代 码 (Preprocessor
Preprocessor
Dis program processes the code.)
2. Preprocess 预处理 k 编译器创建目标代码并将其存储在磁盘中
Compiler Dis (Compiler creates object code and stores it on
disk.)
3. Compile 编译 Linker
k
链接程序将目标代码与库函数相链接
Dis
Primary k (Linker links the object code with the
4. Link 链接 Memory
libraries)
Loader
5. Load 加载 装载程序将程序装入主存储器 (Loader
puts program in memory.)
Disk ..
..
6. Execute 执行
..
中央处理器将指令逐一取出并执行,在
Primary Memory
程序执行过程中可能要存储新的数据值
CPU (CPU takes each instruction and executes it,
possibly storing new data values as the
.. program executes.
..
..
1.13 硬件的发展趋势
每过一到两年,计算机性能提高近一倍: (Every year or two the
following approximately double:)