Re: Libraries and position independent code (-fPIC)

2002-07-26 Thread Junichi Uekawa
Marcin Owsiany <[EMAIL PROTECTED]> immo vero scripsit: > I read somewhere that code compiled with -fPIC is a little larger and > slower. Is this the only reson for that policy requirement? If not, > please give me for some information/pointers on that requirement. I think th

Re: Libraries and position independent code (-fPIC)

2002-07-26 Thread Junichi Uekawa
Marcin Owsiany <[EMAIL PROTECTED]> immo vero scripsit: > I read somewhere that code compiled with -fPIC is a little larger and > slower. Is this the only reson for that policy requirement? If not, > please give me for some information/pointers on that requirement. I think th

Libraries and position independent code (-fPIC)

2002-07-26 Thread Marcin Owsiany
Hi, gurus! The Debian policy says: ] 11.2 Libraries ] ] All libraries must have a shared version in the lib* package and a ] static version in the lib*-dev package. The shared version must be ] compiled with -fPIC, and the static version must not be. In other ] words, each *.c file will need to

Libraries and position independent code (-fPIC)

2002-07-26 Thread Marcin Owsiany
Hi, gurus! The Debian policy says: ] 11.2 Libraries ] ] All libraries must have a shared version in the lib* package and a ] static version in the lib*-dev package. The shared version must be ] compiled with -fPIC, and the static version must not be. In other ] words, each *.c file will need to

Re: gcc and -fPIC

2002-03-21 Thread Simon Richter
or do you mean "ix86"? > Is there a performance hit with -fPIC on Pentium II/III/IV ? Yes, since there are no new registers (you need one register for PIC addressing). Simon -- GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc Fingerprint: 040E B5F7 8

Re: gcc and -fPIC

2002-03-21 Thread Steve M. Robbins
if I cannot > > control the granularity of compiler options easily in a build system and I > > build an executable with -fPIC in order to build an accompanying library > > correctly, am I trading off speed or footprint to any significant degree? > > On most architec

Re: gcc and -fPIC

2002-03-21 Thread Simon Richter
I > build an executable with -fPIC in order to build an accompanying library > correctly, am I trading off speed or footprint to any significant degree? On most architectures, it doesn't really matter except for heavy mathematics and 3D. The only exception is i386, where the performance

Re: gcc and -fPIC

2002-03-21 Thread Steve M. Robbins
thing. e.g. if I cannot > > control the granularity of compiler options easily in a build system and I > > build an executable with -fPIC in order to build an accompanying library > > correctly, am I trading off speed or footprint to any significant degree? > > On most architec

Re: gcc and -fPIC

2002-03-21 Thread Simon Richter
I > build an executable with -fPIC in order to build an accompanying library > correctly, am I trading off speed or footprint to any significant degree? On most architectures, it doesn't really matter except for heavy mathematics and 3D. The only exception is i386, where the performance

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Thursday 21 Mar 2002 1:07 am, Michel LESPINASSE wrote: > For debian shared libraries, yes. > For programs and static libraries, you should avoid using -fPIC. Thanks, I appreciate the advice. It makes my life a bit easier too. :)

Re: gcc and -fPIC

2002-03-20 Thread Michel LESPINASSE
On Wed, Mar 20, 2002 at 11:11:10PM +, Will Newton wrote: > On Wednesday 20 Mar 2002 11:00 pm, Michel LESPINASSE wrote: > > I'd like to add that some architectures (including x86) do not actualy > > require that you use -fPIC for shared libraries. If you choose to do > &

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Wednesday 20 Mar 2002 11:00 pm, Michel LESPINASSE wrote: > I'd like to add that some architectures (including x86) do not actualy > require that you use -fPIC for shared libraries. If you choose to do > that, the benefits are that you dont pay the overhead of -fPIC code, &

Re: gcc and -fPIC

2002-03-20 Thread Michel LESPINASSE
tem and I > build an executable with -fPIC in order to build an accompanying library > correctly, am I trading off speed or footprint to any significant degree? Yes, this will slow down your program by (usualy) around 5% on x86. Probably it will increase the footprint a little as well - I have

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Thursday 21 Mar 2002 1:07 am, Michel LESPINASSE wrote: > For debian shared libraries, yes. > For programs and static libraries, you should avoid using -fPIC. Thanks, I appreciate the advice. It makes my life a bit easier too. :) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a s

Re: gcc and -fPIC

2002-03-20 Thread Michel LESPINASSE
On Wed, Mar 20, 2002 at 11:11:10PM +, Will Newton wrote: > On Wednesday 20 Mar 2002 11:00 pm, Michel LESPINASSE wrote: > > I'd like to add that some architectures (including x86) do not actualy > > require that you use -fPIC for shared libraries. If you choose to do > &

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Wednesday 20 Mar 2002 11:00 pm, Michel LESPINASSE wrote: > I'd like to add that some architectures (including x86) do not actualy > require that you use -fPIC for shared libraries. If you choose to do > that, the benefits are that you dont pay the overhead of -fPIC code, &

Re: gcc and -fPIC

2002-03-20 Thread Michel LESPINASSE
tem and I > build an executable with -fPIC in order to build an accompanying library > correctly, am I trading off speed or footprint to any significant degree? Yes, this will slow down your program by (usualy) around 5% on x86. Probably it will increase the footprint a little as well - I have

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Wednesday 20 Mar 2002 5:46 pm, Simon Richter wrote: > In general, you need to compile everything that could be mapped at > arbitrary addresses (in the process's virtual address space) with the > -fPIC option to make it position independent (whatever that means for the >

Re: gcc and -fPIC

2002-03-20 Thread Simon Richter
Hi, on Wed, 20 Mar 2002, Will Newton wrote: > Is it valid to compile an executable with -fPIC? > Can anyone tell me which architectures require -fPIC? In general, you need to compile everything that could be mapped at arbitrary addresses (in the process's virtual address space) wit

Re: gcc and -fPIC

2002-03-20 Thread Will Newton
On Wednesday 20 Mar 2002 5:46 pm, Simon Richter wrote: > In general, you need to compile everything that could be mapped at > arbitrary addresses (in the process's virtual address space) with the > -fPIC option to make it position independent (whatever that means for the >

Re: gcc and -fPIC

2002-03-20 Thread Simon Richter
Hi, on Wed, 20 Mar 2002, Will Newton wrote: > Is it valid to compile an executable with -fPIC? > Can anyone tell me which architectures require -fPIC? In general, you need to compile everything that could be mapped at arbitrary addresses (in the process's virtual address space) wit

gcc and -fPIC

2002-03-20 Thread Will Newton
Is it valid to compile an executable with -fPIC? Can anyone tell me which architectures require -fPIC? Thanks,

gcc and -fPIC

2002-03-20 Thread Will Newton
Is it valid to compile an executable with -fPIC? Can anyone tell me which architectures require -fPIC? Thanks, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Problems with shared lib (-fPIC)

2000-05-20 Thread Pedro Guerreiro
Hi. I'm having problems compiling a shared python extention, because lintian keeps complaining about foo.so not being compiled with the -fPIC option, but IT IS, as you can see from the output: --- cut --- Making all in compiled make[3]: Entering directory /home/digito/debian/

-fPIC

1999-07-16 Thread Julian Gilbey
[Sent to -mentors and -perl; I am not sure which is appropriate.] I have been working on creating a (binary) Perl module, and have noticed that by default, it will compile with a -fpic flag rather than a -fPIC one. Should I therefore append something like: CC=gcc CCCDLFLAGS=-fPIC to my make

Problem with fPIC (?) in libgtop1

1998-11-11 Thread Ian Lynagh
Hi all On master in ~igloo/libgtop* is the source of the latest package of libgtop1 (not yet uploaded to incoming) with 2 errors reported by lintian. The first relates to the changelog, and I now know how to fix it, but the second, something to do with PIC code, has got me and many people on IRC