计算机组成原理概述
计算机概述
计算机的基本组成:
存储器:实现记忆功能的部件用来存放计算程序及参与运算的各种数据
运算器:负责数据的算术运算和逻辑运算即数据的加工处理
控制器:负责对程序规定的控制信息进行分析,控制并协调输入,输出操作或内存访问
输入设备:实现计算程序和原始数据的输入
输出设备:实现计算结果输出
组成的联系:
图一
图二
常用名词
Bit
Thebitis abasic unitofinformation(信息的基本单元)incomputingand digitalcommunications.A bit can have only one of twovalues(只有两种状态), and may therefore be physically implemented with a two-state device. These values are most commonly represented as either a0or1. The termbitis aportmanteauofbinary digit.
Byte
字节(英语:Byte),通常用作计算机信息计量单位,不分数据类型。一个字节代表八个比特(英语:Bit)。它也是程序设计语言里不可缺少的基本数据类型——整数。
Device driver(驱动程序)
In computing, adevice driver(commonly referred to as adriver) is acomputer program(电脑程序)thatoperates or controls(操作或控制)a particular type of device that is attached to a computer.A driver provides asoftware interface(提供了接口)to hardware devices, enabling operating systems and other computer programs to access hardware functionswithout needing to know(不必知道)precise details of the hardware being used.
JPEG/JPG GIF PNG
JPEG/JPG:
JPEGis a commonly used method oflossy compression(有损压缩)fordigital images, particularly for those images produced bydigital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size andimage quality. JPEG typically achieves 10:1 compression with little perceptible loss(人眼可觉察到的损失) in image quality.
The term "JPEG" is an acronym(缩写) for theJoint Photographic Experts Group, which created the standard.
JPEG/JFIF supports a maximum image size of 65,535×65,535 pixels.JPG supports 16.7 million colors and is the preferred format for photographs.
JPG and JPEG stand both for an image format proposed and supported by the Joint Photographic Experts Group. The two terms have the same meaning and are interchangeable.(两者实质一样,主要是为了兼容windows之前的版本)
GIF:
TheGraphics Interchange Formatis abitmapimage format(位图格式).
If an image has large areas with flat or single tones colors, then GIF is the format of choice. Think logos, icons, banners, and cartoons which are all preferably GIF images. The GIF format supports 256 colors (i.e. an 8-bit color palette). As they use only 256 colors(颜色少), they make for compact images and consume less bandwidth.
GIF images are compressed using theLempel–Ziv–Welch(LZW)lossless data compression(无损压缩)technique to reduce the file size without degrading the visual quality.
支持动图
PNG:
Portable Network Graphicsis araster graphicsfile formatthat supportslossless data compression(无损压缩). PNG was created as an improved, non-patented replacement(替代) forGraphics Interchange Format(GIF), and is the most used lossless image compression format on the Internet
Like GIF, the PNG format supports 8-bit color butalso extends it to 24-bits, thus giving you more color ranges to work with like in a JPEG file. PNG files do not support animation. PNG files are also lossless files retaining color information when they are compressed. Richer images will lead to larger file sizes.
RAM ROM
ROM
Read-only memory(ROM只读内存存储器) is a type ofnon-volatile memoryused incomputersand other electronic devices. Data stored in ROM can only be modified slowly, with difficulty, or not at all, so it is mainly used to storefirmware(softwarethat is closely tied to specifichardwareand unlikely to need frequent updates) or application software in plug-in cartridges.
RAM(随机存取存储器)
Random-access memory(RAM) is a form ofcomputer data storage. Arandom-accessmemory device allowsdataitems to be accessed (reador written) in almost the same amount of time irrespective of the physical location of data inside the memory.
There is one major difference between a ROM and a RAM chip. A ROM chip isnon-volatilestorage and does not require a constant source of power(不需要持续的电源) to retain information stored on it. When power is lost or turned off, a ROM chip will keep the information stored on it. In contrast, a RAM chip isvolatileandrequires a constant source of power to retain information. When power is lost or turned off, a RAM chip will lose the information stored on it.
Other differences between a ROM and a RAM chip include:
A ROM chip is used primarily in the start up(启动阶段) process of a computer, whereas a RAM chip is used in the normal operations of a computer after starting up and loading the operating system.
Writing data to a ROM chip is a slow process, whereas writing data to a RAM chip is a faster process.
A RAM chip can store multiple gigabytes (GB) of data, up to 16 GB or more per chip. A ROM chip typically stores only several megabytes (MB) of data, up to 4 MB or more per chip.
programming language(编程语言)
Aprogramming languageis aformalcomputer languageorconstructed languagedesigned to communicateinstructionsto amachine, particularly acomputer. Programming languages can be used to createprogramsto control the behavior of a machine or to expressalgorithms.
网络方面
ASCII
ASCIIabbreviated fromAmerican Standard Code for Information Interchange, is acharacter encodingstandard (theInternet Assigned Numbers Authority(IANA) prefers the nameUS-ASCII[2]). ASCII codes represent text in computers,telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.
UTF-8
UTF-8is acharacter encodingcapable of encoding all possible characters, orcode points, defined byUnicodeand originally designed byKen ThompsonandRob Pike.
The encoding isvariable-lengthand uses8-bitcode units. It was designed forbackward compatibilitywithASCIIand to avoid the complications ofendiannessandbyte order marksin the alternativeUTF-16andUTF-32encodings. The name is derived from:Unicode (orUniversal Coded Character Set)TransformationFormat–8-bit.
原文:/oneplace/p/5770583.html