tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] -fPIC anyone?


From: Jean-Claude Beaudoin
Subject: Re: [Tinycc-devel] -fPIC anyone?
Date: Wed, 28 Sep 2016 05:39:45 -0400



On Wed, Sep 28, 2016 at 2:41 AM, Christian JULLIEN <address@hidden> wrote:
My only concern is that you should not use -fPIC by default in generated code as it introduces a performance penalty.

This (-fPIC by default) was not my intent. And gcc does not have -fPIC on by default either, so...
 
Too often I see libs that compile source only once code with -fPIC and generate both .so and .a out of them. It is perfectly legal and works well when .o goes in .a.
But stub is still there and I experimented performance penalties that range form 5 up to 20% in binaries using static libs compiled that way.


Duly noted. I suspected that state of affair but never took time to measure its impact.
Thanks for mentioning it.

 

 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]