使用stdafx在MSVC中完成标头预编译的作用是什么 [英] what is the role of Header PreCompilation as is done in MSVC using stdafx

查看:70
本文介绍了使用stdafx在MSVC中完成标头预编译的作用是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Header PreCompilation的作用是什么,如在MSVC中使用stdafx

what is the role of Header PreCompilation as is done in MSVC using stdafx

推荐答案

一样.Precompilation标头的目的主要是为了减少使用大量C ++代码库的编译时间适当地.

本质上,这个想法是拥有一套在应用程序中常用的头文件,并对结果进行预编译,以便编译器在编译后续文件时可以重新加载结果.

通常,在编译stdafx.cpp时会编译预编译的标头.
Precompilation header purpose is mainly to reduce compilation time of huge C++ code base if used appropriatly.

Essentially, the idea is to have a suite of header file that is commonly used in the application and precompile the result so that the compiler can reload the result when compiing subsequent files.

Generally, the precompiled header is compiled when stdafx.cpp is compiled.


这篇关于使用stdafx在MSVC中完成标头预编译的作用是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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