This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86-64 and large code model questions/bugs
On Wed, Jan 28, 2009 at 09:39:39AM +0100, Paolo Bonzini wrote:
>
> > He'll get much better code by putting the program into a -fPIC .so,
> > loading it from a small stub and then unmap the stub.
> > large model generates really very bad code because all jumps
> > will be indirect.
>
> Is it also true with -fpie?
Not sure what you mean?
AFAIK -fpie code is the same quality as -fPIC. Both
are much much better than large model.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.