thinkOS

2017-01-19  本文已影响36人  ALvin_l

compiler

the step of compliation

Preprocessing 预处理
Parsing 语法分析
Static checking 语义分析
code generation 代码生成
Linking 连接
optimization 代码优化

gcc

Output file name : -o
Object code : -c ; nm command : reads an object file and generates informatio about the names it defines and uses
generate assemble code : -S
run Preprocessor : -E
runtime checking: floating point exception(除以0), segmentation fault(内存越界)

进程

抽象和虚拟

隔离

代码段
数据段 编译时静态分配和运行时堆栈
输入输出挂起的状态:读写硬盘,访问网络等
程序中的硬件状态:存储数据到CPU寄存器,状态信息,PC计数器。

操作系统中的下进程支持:

多任务: 中断实现
虚拟内存: 便于内存隔离
设备抽象:

上一篇 下一篇

猜你喜欢

热点阅读