This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: About PIC on non-library objects
- From: Nix <nix at esperi dot demon dot co dot uk>
- To: DervishD <raul at pleyades dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 Aug 2002 12:50:28 +0100
- Subject: Re: About PIC on non-library objects
- References: <3D3688AC.mail1W1BXTIJ@viadomus.com>
On Thu, 18 Jul 2002, DervishD stated:
> Moreover, for simplifying the makefiles, it would be great if I
> could compile the 'main*.c' sources (they just contain the 'main()'
> function and calls to the libraries functions) with PIC too. Would it
> cause any harm?.
No, although it can cause a slowdown, especially on register-deprived
targets like IA32 (ix86 and friends).
--
`There's something satisfying about killing JWZ over and over again.'
-- 1i, personal communication