* will using -fPIC affect performance ?
@ 2008-12-12 21:00 john
2008-12-12 21:32 ` Tim Prince
0 siblings, 1 reply; 2+ messages in thread
From: john @ 2008-12-12 21:00 UTC (permalink / raw)
To: gcc-help; +Cc: john.kati
Hi,
Will using -fPIC affect the performance in anyway ? Does it disable any optimazations ?
Thanks in advance,
--John
Get rid of Add-Ons in your email ID. Get yourname@rocketmail.com. Sign up now! http://in.promos.yahoo.com/address
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: will using -fPIC affect performance ?
2008-12-12 21:00 will using -fPIC affect performance ? john
@ 2008-12-12 21:32 ` Tim Prince
0 siblings, 0 replies; 2+ messages in thread
From: Tim Prince @ 2008-12-12 21:32 UTC (permalink / raw)
To: fromu2john; +Cc: gcc-help, john.kati
john wrote:
> Will using -fPIC affect the performance in anyway ? Does it disable any optimazations ?
If you had read 'info gcc' you'd have seen this is target dependent.
Typically, it may introduce additional overhead on function calls,
compared with non-relocatable code. On targets where this is an issue,
certain libraries (e.g. libm) might be static linked to avoid the
overhead, which used to approach 5% on ia64.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-12 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 21:00 will using -fPIC affect performance ? john
2008-12-12 21:32 ` Tim Prince
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).