可以gcc的后preprocessing输出C code吗? [英] Can gcc output C code after preprocessing?

查看:127
本文介绍了可以gcc的后preprocessing输出C code吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这似乎有很多preprocessing指令,支持C以外的很多语言让我可以学习什么库正在做,我想看到​​C $ C的开源库$ C说我以后preprocessing编译,更像是我会写。

I'm using an open source library which seems to have lots of preprocessing directives to support many languages other than C. So that I can study what the library is doing I'd like to see the C code that I'm compiling after preprocessing, more like what I'd write.

可以的gcc(或任何其他工具在Linux中常用的)读取此库,但输出C code,它有preprocessing转换成什么,也可读人?

Can gcc (or any other tool commonly available in Linux) read this library but output C code that has the preprocessing converted to whatever and is also readable by a human?

推荐答案

CPP是preprocessor。

cpp is the preprocessor.

运行 CPP FILENAME.C 来输出preprocessed code,或更好的,它重定向到一个文件
中共FILENAME.C>文件名。preprossed

Run cpp filename.c to output the preprocessed code, or better, redirect it to a file with ccp filename.c > filename.preprossed

这篇关于可以gcc的后preprocessing输出C code吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆