[Haskell-cafe] Re: Small question [new Wiki page up]

2007-08-11 Thread Andrew Coppin

Stefan O'Rear wrote:



Good idea!  Maybe it could be fit into the GHC Performance Resource
somehow?  (http://www.haskell.org/haskellwiki/Performance/GHC)
  

OK. But it'll probably contain a lot of guessing to start with... ;-)



Wiki pages can be fixed.  Private misunderstandings can't, at least not
anywhere near as easily.
  


A page now exists:

http://www.haskell.org/haskellwiki/GHC_optimisations

Everybody feel free to point and laugh. (Or, more helpfully, expand and 
correct!)


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Small question

2007-08-10 Thread Benjamin Franksen
Andrew Coppin wrote:
 Like that time yesterday, I compiled from program and got a weird
message 
 about GHC about ignored trigraphs or something... What the heck is a
 trigraph?
     

 Everyone's favorite obscure feature of the ANSI C99 preprocessor.
 Probably you had something like this is odd??? in your source code,
 and were using -cpp.

 http://www.vmunix.com/~gabor/c/draft.html#5.2.1.1
   
 
 Er... wow. OK, well I have no idea what happened there... (I'm not using 
 -cpp. I don't even know what it is.) I had presumed GHC was upset 
 because it got killed on the previous run... (I was running something 
 else and it locked up the PC.)

Since you are after increasing your program's performance, maybe you are
using -fvia-c or chose an optimization level high enough that GHC decides
for itself to go via C. The message is very most probably from the C
compiler. You could try passing the C compiler an appropriate flag (see gcc
manual) via a ghc command line option (which I am too lazy to look up).

Cheers
Ben

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe