Should ghc -msse imply gcc -msse

Conrad Parker conrad at metadecks.org
Fri Jan 11 02:00:34 CET 2013


On 11 January 2013 06:10, Johan Tibell <johan.tibell at gmail.com> wrote:
> Hi all,
>
> You can turn on e.g. SSE 4.1 by passing -msse4.2 to ghc. This doesn't
> currently imply that we compile any C code with -msse4.2 turned on, so
> if someone really want to use SSE4.2, they have to do:
>
>     ghc -msse4,2 -optc-msse4.2
>
> Do we want to change this so it's enough to pass -msse4.2 to ghc?

+1, I'd expect the flag to affect all compiled code (I'd be passing
-msse4.2 to make it go faster).

If anyone really wanted the C code to be compiled without (perhaps for
debugging the code generator), they could run something like:

  ghc -msse4,2 -optc-no-msse4.2

Conrad.



More information about the Glasgow-haskell-users mailing list