![](https://img-blog.csdnimg.cn/20210124213819826.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
GCC编译器入门
b站学习记录
王泽的随笔
这个作者很懒,什么都没留下…
展开
-
007_wz_bbk_ar cr t 链接外部静态库
Search Order When environment variables and command-line options are used together the compiler searches the directories in the following order: Command-line options '-I' and '-L',from left to right....原创 2020-11-18 19:44:25 · 164 阅读 · 0 评论 -
006_wz_bbk_Make,外部库
Recompiling and Relinking In genaral,linking is a faster than compliation----in a large project with many source files,recompiling only those that have been modified can make a significant saving. T...原创 2020-11-05 17:03:38 · 104 阅读 · 0 评论 -
005_wz_bbk_-v详细信息,-c生成中间文件,链接次序
Verbose(冗长的) Compilation The '-v' option can be used to display detailed information about the exact sequence of commands used to compile and link a program. -v显示详细信息 The output produced by '-...原创 2020-11-05 17:03:33 · 142 阅读 · 0 评论 -
004_wz_bbk_用GCC编译第一个C程序及多文件编程
Compiling a Simple C Program The classic example program for the C language is: #include <stdio.h> int main(void) { printf("hello world!\n"); return 0; } To compile the file with gcc,use the f...原创 2020-10-08 16:57:34 · 100 阅读 · 0 评论 -
003_wz_bbk_Linux下GCC的安装
安装 打开终端输入: yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake yum -y install wget httpd-tools vim 测试 查看gcc版本信息 gcc --version 查看gcc版本信息 编写Helloworld 创建名为ctest.c文件 touch ctest.c ...原创 2020-10-08 15:35:26 · 73 阅读 · 0 评论 -
002_wz_bbk_GCC的特点
Features of GCC GCC is a portable complier -- it runs on most platforms(平台) available today,and can produce output for many types of processors.In addition to the peocessors used in personal computer...原创 2020-09-30 19:06:43 · 85 阅读 · 0 评论 -
001_wz_bbk_GCC的介绍与发展历史
Reference Books An Introduction to GCC Expert C programming reference books A Brief(简短的) History of GCC The original author of the GNU C Compiler(GCC) is Richard Stallman,the founder of the GN...原创 2020-09-30 18:01:35 · 208 阅读 · 0 评论 -
GCC编译过程和原理浅析
什么是GCC GCC(GNU C Compiler)编译器的作者是Richard Stallman,也是GNU项目的奠基者。 GCC是GNU Compiler Collection的缩写。最初是作为C语言的编译器,现在已经支持多种语言了,如C、C++、Java、Pascal、Ada、COBOL语言等。 GCC支持多种硬件平台,甚至对Don Knuth设计的MMIX这类不常见的计算机都提供了完善的...原创 2020-10-22 12:20:58 · 586 阅读 · 0 评论