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...


<<:  危险气息的研究室:尾递回 Tail Calls

>>:  [DAY 03] EC2

Day 11 Arbitrary attributes

目前MyButton有3个[Parameter],如果再增加的话,又要再定义新的[Parameter...

Progressive Web App 透过系统分享内容: Web Share API & Web Share Target (17)

什麽是 Web Share API Web App 透过 Web Share API 就能够使用系统...

【Day29】谈谈软件工程师 - 8 大战略角色及 7 大能力对应的 26 项指标 (3) 案例分享

30 天 redesign 心目中的 LINE 的章节已经结束罗,有兴趣的话可以点此看看总回顾,现...

Visual studio 2019 OpenGL setup on windows 10

OpenGL有很多library,在建置环境之前,我们需要了解要下载什麽东西 这边我们选择了GLFW...

规划 Parser 的测试

规划测试方式 测试是写 library 很重要的一环,因为我们要确保自己的程序码有一个基本的品质,测...