Static linking vs dynamic linking

后端 未结 17 2001
半阙折子戏
半阙折子戏 2020-11-22 07:40

Are there any compelling performance reasons to choose static linking over dynamic linking or vice versa in certain situations? I\'ve heard or read the following, but I don\

17条回答
  •  心在旅途
    2020-11-22 08:08

    Static linking includes the files that the program needs in a single executable file.

    Dynamic linking is what you would consider the usual, it makes an executable that still requires DLLs and such to be in the same directory (or the DLLs could be in the system folder).

    (DLL = dynamic link library)

    Dynamically linked executables are compiled faster and aren't as resource-heavy.

提交回复
热议问题