linux gcc
来源:互联网 发布:管家婆数据库工具 编辑:程序博客网 时间:2024/05/18 03:00
gcc命令是用来编译程序的。
通常做法为 gcc test.c -o test 将test.c文件指定生成可执行文件test。也可以直接采用gcc test.c ,默认生成可执行文件a.out。
编译有4个步骤:
1.gcc -E test.c -o test.i 将test.c预处理输出test.i文件。
2.gcc -S test.i -o test.s 将预处理输出文件test.i编译成test.s文件。
3.gcc -c test.s -o test.o 将编译输出文件test.s汇编输出test.o文件。
4.gcc test.o -o test 将汇编输出文件test.o链接成最终可执行文件test。
其中上述通常做法包含了这4个步骤,简单概括为:
1.预处理
2.编译
3.汇编
4.链接
最后输入./test命令即可执行程序。
阅读全文
0 0
- linux gcc
- linux gcc
- linux gcc
- linux gcc
- linux gcc
- linux gcc
- gcc/arm-linux-gcc 浅析
- Linux安装gcc/gcc-c++
- linux GCC编译过程
- linux GCC编译过程
- linux下安装gcc
- linux gcc 安装
- linux gcc参数详解
- linux gcc 编译过程
- Linux下编译GCC
- arm-linux-gcc安装
- arm-linux-gcc制作
- linux 更改gcc版本
- 10.2解题报告
- 文章标题
- 第n个素数
- 梯度弥散和梯度爆炸
- 漏斗模型
- linux gcc
- JS原生路由
- POJ 2410 Simple Computers 笔记
- linux关于系统管理、系统安全相关命令
- Hopfield神经网络
- 计算机网络(三)数据链路层
- python3基础知识整理之字符串处理
- office-word使用技巧——表格
- 解决The resource identified by this request is only capable of generating responses with characteristi