【FSFA 读书笔记】Ch 2 Computer Foundatinons(1)

简介: Data Organization 1. 进制转换。   按照正常的书写顺序写一个数字(无论多少进制),其中最左边的列称为“最高有效符号”,最右边的列称为“最低有效符号”。   (The right-most column is called the least significant sym...
Data Organization
1. 进制转换。
  按照正常的书写顺序写一个数字(无论多少进制),其中最左边的列称为“最高有效符号”,最右边的列称为“最低有效符号”。
  (The right-most column is called the least significant symbol, and the left-most column is called the most significant symbol.)
  二进制、十进制与十六进制转换表,学过数电一定对这个很熟悉~
 
2. Data sizes
在存储 多字节数据时,有“大端法”和“小端法”两种模式,区别在于把放置“最高有效符号”和“最低有效符号”的顺序。
(Computers differ in how they organize multiple-byte values. Some of them use  big-endian ordering and put the most significant byte of the number in the first storage byte, and others use little-endian ordering and put the least significant byte of the number in the first storage byte.)
二者的区别可从这张图上很直观的看出来
 
3. 字符编码
为了存储非数值类型的数据(字符),我们以各种标准来编码字符,比如ASCII和Unicode

(...to stores letters and sentences. The most common technique is to encode the characters
using ASCII or Unicode.)

ASCII码由于只占一个字节,因此不受大小端模式的影响。

(The endian ordering of a system does not play a role in how the characters are stored because these are separate 1-byte values.)

 
4. 数据结构 
数据结构描述了数据的布局(或者我理解为一种协议),程序根据这些约定好的布局,访问特定数据域得到目标值。
(Computers know the layout of the data because of data structures.
A data structure describes how data are laid out. It works like a template or map.
The data structure is broken up into  fields, and each field has a size and name, although this information is not saved with the  data.)
 
5. 标志位
有时需要的信息是二值的,一个位即可存储,然而计算机的最小存储单位是字节,这时可把若干位组合成一个字节,每一位称作一个标志位。
(这时各种强大的位运算可以大显身手了~)
(A more efficient  method is to pack several of these binary conditions into one value. Each bit in the value  corresponds to a feature or option.)
 
Booting Process
下图虚线描述了计算机通电后控制权的转交过程,即BIOS->MBR->VBR->OS中的引导代码
目录
相关文章
|
7月前
|
存储 缓存 Shell
【CSAPP随笔】CH2:A Tour of Computer Systems | 计算机系统漫游
【CSAPP随笔】CH2:A Tour of Computer Systems | 计算机系统漫游
47 0
|
IDE 开发工具
【FSFA 读书笔记】Ch 2 Computer Foundatinons(2)
Hard Disk Technology 1. 机械硬盘内部构造 几个重要概念:Sector(扇区),Head(读写头),Track(磁道),Cylinder(柱面)。 如果一个文件比较大,磁盘的写入顺序如下,因此有了后面的CHS地址表示:   写满一个扇区->磁盘旋转,写同磁道的下一个扇区...
958 0
|
Windows 存储 Unix
【FSFA 读书笔记】Ch4 Volume Analysis & Cr 5 PC-based Partitions
Volume Analysis 1. “卷”可以理解为从逻辑上对物理存储设备的重新编制,便于操作系统管理。 (A volume is a collection of addressable sectors that an Operating System (OS) or application can use for data storage.) 每个卷的第一个扇区通常是它的引导记录(VBR)(可以把整个磁盘看成一个更大的卷),引导记录内应包含对它所管辖范围内的分区表。
1044 0
|
1天前
|
存储 消息中间件 缓存
【DDIA笔记】【ch1】 可靠性、可扩展性和可维护性 -- part1 可靠性
【6月更文挑战第2天】本书探讨现代数据系统,阐述其在信息社会中的关键作用,包括数据库、缓存、搜索引擎、流处理、批处理和消息队列等组成部分。随着技术发展,工具如Kafka、Spark和Redis等多功能组件使得系统设计更为复杂。面对可靠性、可扩展性和可维护性的挑战,书中强调了容错和韧性的重要性,区分了硬件故障、软件错误和人为错误,并提出了应对措施。可靠性关乎用户数据、企业声誉和生存,因此是系统设计的核心考量。
14 0
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
有了原理图,可以设计硬件PCB,在设计PCB之间还有一个协同优先动作,就是映射封装,原理图库的元器件我们是自己设计的。为了更好的表述封装设计过程,本文描述了CH340G和MAX232芯片封装创建(SOP-16),并将原理图的元器件关联引脚封装。
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件

热门文章

最新文章