-O and -prof

John Meacham john@repetae.net
Fri, 16 May 2003 03:26:38 -0700


I always use them in combination. simply because optimization can
drastically change the memory useage/profile. profiling the unoptimized
version seems rather moot. 
BTW. does O2 still do not much more than -O? it seems to reduce the
memory footprint of some of my apps pretty noticbly.
        John

On Fri, May 16, 2003 at 12:06:48PM +0200, Ketil Z. Malde wrote:
> 
> Hi,
> 
> Is there any reason not to use these options in combination?
> 
> Out of habit, I don't usually combine them, but it'd probably be more
> interesting to do time profiling with optimized code, since the
> compiler tend to optimize away some of the more pedestrian stuff on
> its own.
> 
> When I recently tried this, I got a surprising stack overflow --
> surprising, as I don't get that with either option by itself.
> 
> -kzm
> -- 
> If I haven't seen further, it is by standing in the footprints of giants
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> 

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john@foo.net
---------------------------------------------------------------------------