LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 771|回复: 0

Use precompile header in gcc 3.4

[复制链接]
发表于 2004-4-30 15:35:47 | 显示全部楼层 |阅读模式
From gcc 3.4.0, you can use precompiled header, this will improve the compile speed for the large c/c++ project.
it is simple to use precompiled header, for example you can create a header file named all.h, this file include all the header files that you will included in your project and copy the file all.h to all.h.gch in the same directory, then include "all.h" in the files you want to include the original headers. when compiling source cdoe, gcc will use all.h.gch to speed up the compile process.

more info please refer to
http://gcc.gnu.org/onlinedocs/gc ... ecompiled%20Headers
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表