Mail Archives: djgpp/1998/08/22/16:37:41
Arthur wrote:
> > Doesn't -march=pentium make pentium optimized code?
>
> AFAIK it only aligns the instructions for a Pentium. Code using -march=pentium will
> still work on older machines.
You've got it backwards. -march=xxx makes specific code (I think
-march=pentiumpro will use tge ficomp instructions (though wrongly-- it
has a bug)). -mcpu=xxx just does alignment and instruction choice
(`enter' vs. `push ebp; mov ebp,esp' sort of thing), and maybe
scheduling as well, I'm not sure,
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -