Faster, GHC, and floating point.

Andreas.Schroeder at gillardon.de Andreas.Schroeder at gillardon.de
Tue Oct 21 13:03:34 EDT 2003


Can't tell you, SSE is disabled by cygwin when i try -mfpmath=sse i get the
message

c++ AIBD.cpp Main.cpp -O2 -mfpmath=sse -o AIBD.exe

cc1plus: warning: SSE instruction set disabled, using 387 arithmetics

and the program it takes obviously the same time.

Oh, and btw, using MinGW yields the same message for C/C++.
For haskell actually, it _makes_ a difference. Don't ask me why and how.



|---------+--------------------------->
|         |           Michael Weber   |
|         |           <michaelw at foldr.|
|         |           org>            |
|         |                           |
|         |           21.10.2003 11:47|
|         |                           |
|---------+--------------------------->
  >-------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                   |
  |        An:      Andreas.Schroeder at gillardon.de                                                                    |
  |        Kopie:   glasgow-haskell-users at haskell.org                                                                 |
  |        Thema:   Re: Faster, GHC, and floating point.                                                              |
  >-------------------------------------------------------------------------------------------------------------------|



* Andreas.Schroeder at gillardon.de [2003-10-21T11:39+0200]:
> Now, Haskell takes 4.57 the time of C++ (cygwin gnu C++ with -O2).

Did you add the SSE options etc. to the C++ program as well when
comparing Haskell vs. C++?  What is the SSE speedup of C++
vs. C++/with SSE?


Cheers,
Michael







More information about the Glasgow-haskell-users mailing list