Dear Win32 GHC folk It does seem that GHC 5.04 profiling was utterly broken. It now seems that this might have been to do with the version of gcc we were using. It seems to work with 5.04.1 and a new version of gcc, which (though Sigbjorn's good offices) will come inside 5.04.1's distribution. So our claim is that 5.04.1 will work for profiling. We hope to get it out this week. Can you try again then? Thanks Simon | -----Original Message----- | From: andreas.marth@daimlerchrysler.com | [mailto:andreas.marth@daimlerchrysler.com] | Sent: 15 August 2002 16:58 | To: glasgow-haskell-users@haskell.org | Subject: ghc 5.04 -- make -prof -auto-all under WinNT | | Hallo! | | I tried to compile the following little program (hallo.hs) with ghc-5.04 --make | -prof -auto: | | import System (getArgs) | | | main :: IO () | main= do args <- getArgs | if args == [] then error "Aufruf: Filename Dimension1 Dimension2 | ..." | else prog (head args) (tail args) | | prog :: FilePath -> [String] -> IO () | prog file dimZ = do cont <- readFile file | putStr (file ++ "\n") | putStr (show dimZ ++ "\n") | let result = "Hello world!" | writeFile (file++".out") ( result) | | The system is WinNT and compiling succeeded. But I got an a.out file while I | should get a file hallo.exe (according to ghc --help). | I renamed the program to hallo.exe and tried it. When I don't give any | arguments it behaves like expected. If I give it one or more arguments it | crashes. | | When I compile it only with ghc --make hallo.hs I also get an a.out file but | this behaves well when renamed to hallo.exe. | | What is the problem? And what can I do to use the profiling? | | Thank, | Andreas
participants (1)
-
Simon Peyton-Jones