Linked by Adam S on Tue 26th Aug 2008 21:12 UTC
Linux Dynamically linked shared libraries are an important aspect of GNU/Linux. They allow executables to dynamically access external functionality at run time and thereby reduce their overall memory footprint. This article investigates the process of creating and using dynamic libraries, provides details on the various tools for exploring them, and explores how these libraries work under the hood.
Thread beginning with comment 328173
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Not a good ELF
by sbergman27 on Wed 27th Aug 2008 15:09 UTC in reply to "Not a good ELF"
sbergman27
Member since:
2005-07-24

PE doesn't generate position-independent code, so it's slightly faster than ELF since eg. the EBX register is available to x86 applications to use.

Yes. The difference is typically about 5% for processor-bound tasks on x86_32. I doubt the effect is measurable at all on architectures like x86_64 which are not so ridiculously register-starved.

gcc will produce non position independent code if you tell it to.

Reply Parent Bookmark Score: 2