[FFmpeg-devel] PIC and YASM

Michael Niedermayer michaelni
Mon Nov 9 19:45:17 CET 2009


On Mon, Nov 09, 2009 at 10:12:12AM -0800, Frank Barchard wrote:
[...]
> An upside is that code can load faster, since there are no relocs,

just curious, do you have a benchmark about this?


> and take
> less memory by sharing dll's.

and do you have some numbers about this?
PIC code is inherently larger and more complex, it does require
additional indirection tables, ...
thats a cost everyone who uses it, has to pay.
The win just happens for thouse who have  2 "dlls" loaded at the same time
by 2 processes
(this also implicates that libav* isnt linked statically like many do)
and its just the pages that contain relocs that would differ
and then only on OSs that cannot place these libs at the same location in
both processes. (if the locations match, so do the relocs)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091109/12e642c6/attachment.pgp>



More information about the ffmpeg-devel mailing list