This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Best way to compile for a 32-bit chroot on a 64-bit processor - -march=athlonxp, or -march=k8 -m32 ?
- From: Asfand Yar Qazi <email at asfandyar dot cjb dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 05 May 2006 05:58:38 +0100
- Subject: Best way to compile for a 32-bit chroot on a 64-bit processor - -march=athlonxp, or -march=k8 -m32 ?
Hi,
What's the best way of compiling for a 32-bit chroot on a 64-bit processor?
I'm currently using '-march=athlon-xp', but I don't know if that makes best
use of all the 32-bit compatible instructions on my chip, and if the code is
best tuned to my chip. Would '-march=k8 -m32' be better?
BTW, we're talking compiling a Gentoo 32-bit chroot environment here.
Thanks