Related articles |
---|
optimization using profiling iyossi@my-dejanews.com (1998-11-12) |
Re: optimization using profiling mikey@ontek.com (1998-11-15) |
Re: optimization using profiling jrw@pobox.com (John Williams) (1998-11-15) |
Re: optimization using profiling joachim.durchholz@munich.netsurf.de (Joachim Durchholz) (1998-11-15) |
From: | Joachim Durchholz <joachim.durchholz@munich.netsurf.de> |
Newsgroups: | comp.compilers |
Date: | 15 Nov 1998 13:36:01 -0500 |
Organization: | Compilers Central |
References: | 98-11-078 |
Keywords: | optimize |
iyossi@my-dejanews.com wrote:
>
> How? What can be done after profiling that can't be done without it ?
For example, it can tell the optimizer whether a loop is usually
executed not at all, once, or a thousand times. This has influcence on
the decision whether to move code out of the loop body (which is
actually contraproductive if the loop is usually not executed at all).
Test coverage data is less than useful for this (the idea test coverage
will execute each path exactly once). But you have to carefully select
*typical* input to get useful profiling information, else the profiler
output will indeed misguide the optimizer.
Regards,
Joachim
Return to the
comp.compilers page.
Search the
comp.compilers archives again.