digitalmars.D - compiler optimizing based on profiler output
- Ben Hinkle (5/5) Sep 10 2005 This isn't specific to D but does anyone know of a compiler or language ...
- Sean Kelly (4/9) Sep 10 2005 The Sun compiler does. There's an article about it here:
- Walter Bright (8/13) Sep 10 2005 that
This isn't specific to D but does anyone know of a compiler or language that optimizes based on profiler output? In other words you run the program a few times through typical usage and collect profiler data and then recompile with that profiler data in order to do more optimizations (or less...). I'm curious how effective it is instead of a JIT, for example.
Sep 10 2005
In article <dfv1c0$2cqa$1 digitaldaemon.com>, Ben Hinkle says...This isn't specific to D but does anyone know of a compiler or language that optimizes based on profiler output? In other words you run the program a few times through typical usage and collect profiler data and then recompile with that profiler data in order to do more optimizations (or less...). I'm curious how effective it is instead of a JIT, for example.The Sun compiler does. There's an article about it here: http://developers.sun.com/prodtech/cc/articles/codelayout.html Sean
Sep 10 2005
"Ben Hinkle" <ben.hinkle gmail.com> wrote in message news:dfv1c0$2cqa$1 digitaldaemon.com...This isn't specific to D but does anyone know of a compiler or languagethatoptimizes based on profiler output? In other words you run the program afewtimes through typical usage and collect profiler data and then recompile with that profiler data in order to do more optimizations (or less...).I'mcurious how effective it is instead of a JIT, for example.You can use the builtin D profiler to order the layout of code to minimize thrashing. See www.digitalmars.com/ctg/trace.html. A linker module definition file, trace.def, will be created which will order the code.
Sep 10 2005