Skip to content

Commit

Permalink
update ch1:sec1
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyuu committed Jul 19, 2022
1 parent 7272381 commit 9553c27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/chapter1/1app-ee-platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@

.. _term-platform:

.. note::

现代编译器工具集(以C编译器为例)的主要工作流程如下:

1. 源代码(source code) --> 预处理器(preprocessor) --> 宏展开的源代码
2. 宏展开的源代码 --> 编译器(compiler) --> 汇编程序
3. 汇编程序 --> 汇编器(assembler)--> 目标代码(object code)
4. 目标代码 --> 链接器(linker) --> 可执行文件(executables)


对于一份用某种编程语言实现的应用程序源代码而言,编译器在将其通过编译、链接得到可执行文件的时候需要知道程序要在哪个 **平台** (Platform) 上运行。这里平台主要是指 CPU 类型、操作系统类型和标准运行时库的组合。从上面给出的 :ref:`应用程序执行环境栈 <app-software-stack>` 可以看出:

- 如果用户态基于的内核不同,会导致系统调用接口不同或者语义不一致;
Expand Down

0 comments on commit 9553c27

Please sign in to comment.