On Mon, Oct 3, 2011 at 3:02 PM, Florian Weimer <f...@deneb.enyo.de> wrote:
> * Adam Borowski:
>
>>> I would defend static libs for scientific apps. Static libs show a
>>> significant performance benefit (2-40%, median around 5-10% but sometimes
>>> far more with C++ apps) and so are standard in HPC still;
>>
>> If you see that big a difference, you do a lot of cross-file calls in
>> tight loops.
>
> Not necessarily.  -fPIC and -fPIE force calls to global functions
> defined in the same translation unit to go through the PLT.  They
> aren't translated to direct IP-relative calls.  For -fPIC, this is
> required by the ELF specification (no kidding, this might seem strange
> today).

Could we add a gcc flag and be non conformant ? I suppose it is only
for using LD_PRELOAD.

Bastien
>
> --
> To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/87d3eefcsv....@mid.deneb.enyo.de
>
>


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAE2SPAaWyJb7GGnQT4cj+A0c9748a0CtSB8XMij5gP=vfdd...@mail.gmail.com

Reply via email to