Build or compile

后端 未结 6 966
终归单人心
终归单人心 2020-12-28 18:17

I have a theoretical question about the difference between compile and build. I\'m programming in a c++ project that takes a lot of time to build, so I have told to do build

6条回答
  •  执念已碎
    2020-12-28 18:26

    Compiling is the process of converting the high level code to machine level code

    Building is the process of converting the high level language to a executable. It would involve compiling and linking .

    In case of modification of a header file, the header file might affect several c++ files and hence to get a final executable you need to build it

    There is no use in compiling alone as it does not produce the final excutable and hence you need to build always.

提交回复
热议问题