|
发表于 2004-12-24 09:27:16
|
显示全部楼层
用 gcc -E就可以了,比如你有个test.c ,使用gcc -E test.c 就可以让gcc在预处理后停下来。
下面摘自 man gcc
-E Stop after the preprocessing stage; do not run the
compiler proper. The output is in the form of prepro­
cessed source code, which is sent to the standard out­
put.
Input files which don't require preprocessing are
ignored. |
|