linux - which one is recommended: using static lib vs dynamic lib (shared object) -
I am working with an application in Linux. It supports both stable and dynamic (.so) versions
From the perspective of performance, which version should the user use? This application performs computational functions which require several hours of CPU time.
Any other advantage of using a lib on the other?
Thanks
From the pure display point: < / P>
Shared objects are compiled as PIC (status independent codes), in theory the general code on some architecture (including x86) may be reduced.
However, I do not think there will be any real difference from this.
From any other point of view
Use the shared object, it has many advantages over its static library that it is still better alternative.
Comments
Post a Comment