Loading time for shared libraries vs static libraries

后端 未结 3 1334
感情败类
感情败类 2020-12-28 10:27

I have a question on shared libraries vs static libraries loading time.

Assume that i have a executable foo.exe which uses liba, libb, libc. Also at a given time th

3条回答
  •  一生所求
    2020-12-28 10:46

    Static libraries are linked at compiled time, shared libraries are linked at runtime. Therefore, executables using static libraries amortize all their link time before even being written to disk.

提交回复
热议问题