Best compiler for windows

What is the best compiler for windows in terms of
performances of the generated code ?

Visual C++, Cygwin, another compiler ?

Thanks.–

Xavier Le Pasteur
@Xavier_Le_Pasteur

What is the best compiler for windows in terms of
performances of the generated code ?

the Intel C compiler is reputed to be superior but I don’t know if anyone
has successfully used SDL with it

What is the best compiler for windows in terms of
performances of the generated code ?

I’ve heard Intel has a good one… But I have no idea
if it’s so good for AMD etc… :slight_smile:

– Timo Suoranta – @Timo_K_Suoranta

Of Mattias Engdeg?rd

What is the best compiler for windows in terms of
performances of the generated code ?

the Intel C compiler is reputed to be superior but I don’t know if anyone
has successfully used SDL with it

The Intel version 5 compiler works on SDL… however doesn’t work on
mikmod(in SDL_mixer) (have to change all the _mmalloc(single parameter)'s to
_mmalloc(two parameters(second parameter is alignment)) or I suppose some
kind of macro could be done. It also doesn’t like freetype, it doesn’t like
how the include files work in it, so that also breaks SDL_TTF2.01beta.

Aparently the Intel compiler is incompatible with MSVC++'s Processer pack as
well, so binaries that use extended features of the intel CPU’s won’t work
(Pentium III,Pentium IV) with other binaries compiled using those features
that were compiled with MS’s compiler.

Aparently on Toms Hardware, when he tested the Pentium 4 and Athlons Mpeg-4
encoding, the intel optimized one (with the intel compiler) also ran faster
on the AMD Athlon.

So yes, SDL does compile with it. It’s some of the addons that won’t.
(Aparently the _mmalloc issue is part of a processor optimization, with the
Pentium 4 being optimized for 16byte alignment)

I didn’t notice any performance difference… so it might have more to do
with inline assembly or specific optimizations (like only targeting one CPU,
and breaking support for others)


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

----- Original Message -----
From: owner-sdl@lokigames.com [mailto:owner-sdl at lokigames.com]On Behalf
Sent: April 25, 2001 2:54 AM
To: sdl at lokigames.com
Subject: Re: [SDL] best compiler for windows

The Intel version 5 compiler works on SDL… however doesn’t work on
mikmod(in SDL_mixer) (have to change all the _mmalloc(single parameter)'s to
_mmalloc(two parameters(second parameter is alignment)) or I suppose some
kind of macro could be done.

I didn’t find any _mmalloc() in mikmod - there is a _mm_malloc() but I
don’t see why that would need to be changed (except that it’s a bad
idea to have identifiers starting with an underscore)

Of Mattias Engdeg?rd

The Intel version 5 compiler works on SDL… however doesn’t work on
mikmod(in SDL_mixer) (have to change all the _mmalloc(single parameter)'s
to
_mmalloc(two parameters(second parameter is alignment)) or I suppose some
kind of macro could be done.

I didn’t find any _mmalloc() in mikmod - there is a _mm_malloc() but I
don’t see why that would need to be changed (except that it’s a bad
idea to have identifiers starting with an underscore)

Oops, that’s what I meant.

When I tried compiling it without changing mikmod it just came up with
"catastrophic error (code 4)" and aborted compiling.

So I went and did a mass replace, adding ,16 in the end of the brackets
in mikmod and that fixed it. No performace difference noticed either.
(and yes I saved a copy when I reverted it back to the release version and
went back to MS’s compiler.)


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

----- Original Message -----
From: owner-sdl@lokigames.com [mailto:owner-sdl at lokigames.com]On Behalf
Sent: April 25, 2001 8:47 AM
To: sdl at lokigames.com
Subject: Re: [SDL] best compiler for windows