|
From: | Jean-Claude Beaudoin |
Subject: | Re: [Tinycc-devel] -fPIC anyone? |
Date: | Wed, 28 Sep 2016 05:39:45 -0400 |
My only concern is that you should not use -fPIC by default in generated code as it introduces a performance penalty.
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.
[Prev in Thread] | Current Thread | [Next in Thread] |