RE: GHCi and -O [was: Re: ANNOUNCE: GHC 5.02.3 released]

This made me think about using *.o-files in GHCi generated w/ 'ghc -O2'. My GHCi (currently 5.00.2) states:
--- snip --- warning: -O conflicts with --interactive; -O turned off. --- snap ---
if I pass -O2 to ghci.
Additionally, I recall some core-dumps or having ghci sometimes report missing symbols if using some modules compiled w/ optimization.
So, is GHCi supposed to work w/ optimized modules after all?
Sure, GHCi is supposed to be able to load optimised object code just as well as non-optimised object code. If it doesn't, this is a bug. Cheers, Simon

"Simon Marlow"
warning: -O conflicts with --interactive; -O turned off.
So, is GHCi supposed to work w/ optimized modules after all?
Sure, GHCi is supposed to be able to load optimised object code just as well as non-optimised object code. If it doesn't, this is a bug.
You can use .o files compiled with -O, but you don't start GHCi with -O! Which, as I understood it, was what was puzzling Till. A regular, non-O GHCi is (should be) able to work fine with optimized and non-optimized compiled code. (I don't remember ever having any problems with that, only with profiling and non-profiling code) -kzm -- If I haven't seen further, it is by standing in the footprints of giants
participants (2)
-
ketil@ii.uib.no
-
Simon Marlow