do compiler opts for AMD [SOLVED]

Started by
7 comments, last by GameDev.net 18 years, 9 months ago
hey, is there a possibility to say the compiler to explicit optimize for AMD/AMD64 compiler, it's only a thought, but every time i look into the optimization tabs i find myself in a exlusivly intel orientated world, is there a chance to say "compiler dude, optimize for AMD64" ;) thx in advance tgar [Edited by - Thaligar on June 29, 2005 2:24:52 AM]
Advertisement
if you're using gcc (mingw32 under windows) then this page is what you want. if you're using another compiler i can't help ya there.
This space for rent.
wow that was fast,
thx gumpy macdrunken,

it's exactly what i'm looking for but is there something similar for the vc compilers (vc6 + vc2003),

thx
tgar
I don't believe there are options for the VC6 compiler, but the help information for 2003 says that the /G7 option optimizes for Intel Pentium 4 and AMD Athlon processors.

* Knowledge applies only to 32-bit versions.
The amd64 didn't exist when VC6 came out.
-Mike
If you are doing something where compiler CPU optimisation matters, I suggest you look at other compilers (besides Microsoft and gcc).

I'm not knocking Microsoft and gcc - they are fine compilers, but neither of them optimises as well as some of the other more specialised ones.

Intel's C compiler may not optimise specifically for AMD chips, but I wonder how well its pentium-4 optimised code works on Athlon - pretty well probably.

Mark
Athlons have no SSE.
AthlonXP has SSE, but (afaik) not SSE2 or 3.
Athlon64s have SSE2, and the newest models (Venice/San Diego) have SSE3.

VC doesn't have any options that allow you to explicitly optimize for AMD, so you're probably best with /G7 (or /G6 for Athlons).
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
thx to all,

tgar
AFAIK the Intel C++ Compiler 9 has specific support for AMD64 machines.

This topic is closed to new replies.

Advertisement