[Haskell-cafe] Re: Small question

Benjamin Franksen benjamin.franksen at bessy.de
Fri Aug 10 16:59:50 EDT 2007


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



More information about the Haskell-Cafe mailing list