iT邦幫忙

2021 iThome 鐵人賽

DAY 3
0
自我挑戰組

Enhancement the c programming in 30 days系列 第 3

Day 3 - A short introduction to gcc usage - 2

Today I will introduce the order of compiling.

First of all, type the command below

$man gcc 

Man page is a document collection that includes much manual or software documentation etc..., when you typed finished, you will see a series of explanation.

In this example you will see the gcc explanation then let us find a part of the Description at the front two lines.
As below

When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The "overall options" allow you to stop this process at an intermediate stage. For example, the -c option says not to run the linker. Then the output consists of object files output by the assembler.

Especially on this "it normally does preprocessing, compilation, assembly and linking.",from this description, we can know the order of compiling.

The orders of compiling are

  1. preprocessing
  2. compilation
  3. assembly
  4. linking

We will know more detail about these steps with corresponding options with them tomorrow.

continue...


上一篇
Day 2 - A short introduction to gcc usage - 1
系列文
Enhancement the c programming in 30 days3
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言