易截截图软件、单文件、免安装、纯绿色、仅160KB

怎样查看C编译器处理完前6个编译步骤后的源文件?

C编译器有8个编译阶段,怎么看到处理完前6个编译阶段后的源文件?我用的是GCC
一直没思考过,帮顶一下

我只知道:预处理、编译、汇编、链接这四个阶段,lz说的八个阶段是??

可以看看这个:
http://linux.chinaunix.net/bbs/thread-1133554-1-1.html

抱歉只知道下面四个步骤
cpp -o test.i test.c //预处理
gcc -S -o test.s test.i //编译成汇编代码
as -o test.o test.s //汇编成目标文件
ld -o test test.o -emain -lc //链接成可执行文件 -e 表示从哪个函数开始执行 -lc 表示将c库链接

难道说的是 -E 参数?

gcc -Wall -save-temps -ansi ansi.c -o ansi

难不成还包括编译器内部的词法分析、优化之类的

[test@test ~]$ man gcc

      -v  Print (on standard error output) the commands executed to run the
          stages of compilation.  Also print the version number of the
          compiler driver program and of the preprocessor and the compiler
          proper.

     

http://book.51cto.com/art/200708/54986.htm
各位请看这里。

引用
http://book.51cto.com/art/200708/54986.htm
各位请看这里。


汗!! 已阅。

其中 1,2,3,4,5,6 对应 预处理阶段。
7 对应 编译阶段+汇编阶段。
8 对应 链接阶段

这书,貌似层次划分不太干


相关问答:

能用C/C++简单实现五子棋程序吗?

最近突然想自己来实现一个五子棋程序,但不知道怎么开始,自己也没学画图形函数,能在控制台下直接写吗>>>?????
控制台?比图形界面更麻烦。
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......

C中的一些小问题。。。

/* Note:Your choice is C IDE

作用: 随机数加密法,,,,
以下有许多不懂,请教一下,请主意代码;
*/
#include <stdio.h>
#include <stdlib.h>
union
{
int value;
struct
{
c ......

用C或C++如何编写求解3D魔方程序 - C/C++ / C++ 语言

请问用C或C++如何编写求解3D魔方的程序,该从何开始?
谢谢各位,帮忙提点建议吧。

http://www.mofang.net/code/176/182/6581.html

我只能突破60秒!唉。

我刚过40秒

google的android中有个OpenGL ES + ......

探求出c++、c的知识

      现在有关c++、c的书籍,那些书是较深层次的?请介绍几本?


#include <iostream>
using namespace std;
int funhion(int x, int y )
{
int m,n;
    ......

c#控制Mysql 实现自动删除功能 - .NET技术 / C#

有个winform程序,使用c#+mysql,需要在一个窗体设置mysql自动删除功能,包括自动删除多少天之前的数据以及是否开启自动删除功能,我程序退出后,还怎么控制Mysql自己删除啊?是不是要用mysql的event来实现?c#可以调用mysq ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号