About PIC on non-library objects

Nix nix@esperi.demon.co.uk
Sat Aug 10 05:01:00 GMT 2002


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



More information about the Gcc-help mailing list