Ubuntu 学习6——GUN编译环境 - iiishooter's Blog - Attitude is Altitude

Ubuntu 学习6——GUN编译环境

iiishooter posted @ 2010年5月16日 08:23 in Linux with tags Ubuntu学习 , 2706 阅读

6. GNU 编译环境

6.1 GNU编译器

GNU编译器用于将源程序编译为中间语言,之后再对中间语言进行第二次编译,生成机器码。编译默认输出的文件为源代码所在位置的目录的.a/out

6.1.1 gcc,g++

c语言编译过程:预编译编译汇编连接

gcc [参数] [源程序]

g++ [参数] [源程序]

参数:

-g:增加调试信息

-c:只编译和汇编,不连接

-S:只编译,不汇编

-E:只预编译

-o file:指定输出文件

-v:打印编译的命令。

 

6.2 调试器

6.2.2 gdb

gdb = GUN Debugger

原文中对此部分讲解十分简略,待日后收集资料再做补充。

 

真诚欢迎广大网友留言讨论!
CBSE Class 3 Urdu Qu 说:
2022年9月16日 22:44

Every year, the CBSE Board Class 3 Ibtedai Sample Paper 2023 is released to help students understand the test format. CBSE Class 3 Urdu Question Paper It is suggested to practise the Ibtedai sample paper at home in order to do better on all school- or board-level exams. From the above links, get the CBSE Class 3 Urdu Exam Sample Paper 2023 Pdf with suggestions in Set Wide for all Ibtedai subjects.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee