简体   繁体   中英

what is the need to rebuild all project or a part of the project?

DEV C++ 之类的 IDE 中的“全部重建”按钮或“构建”实际上是做什么的?我从不需要它,但我见过有人使用它。这与“编译”不同(编译是在代码块中构建,但不是在 DEV C++ 中)。

The first time you compile, you need to compile every C file. On subsequent compiles, you only need to compile the C files that have changed.

The project can keep track of what had been modified and what needs to be recompiled and what doesn't.

So Build can be faster, as it won't recompile everything, only the source files that have changed since last build.

Re-build all forces everything to be recompiled, which might be necessary if some sort of change is made that the project can't identify for some reason, like a change to a file made externally to the IDE.

First compiling and building is not the same. Compiling means translating your source (eg c-code) to a binary format or some sort of byte-code. Build means the entire process of building a project. Eg if you have more than one c-file these files needs to be compiled first and linked afterwards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM