Re: recognition and optimization of prefix computation or variants in C/C++ compilers

idbaxter@semdesigns.com
Sat, 21 Jun 2008 03:20:54 -0700 (PDT)

          From comp.compilers

Related articles
recognition and optimization of prefix computation or variants in C/C+ sandyasm@gmail.com (2008-06-17)
Re: recognition and optimization of prefix computation or variants in gneuner2@comcast.net (George Neuner) (2008-06-18)
Re: recognition and optimization of prefix computation or variants in idbaxter@semdesigns.com (2008-06-21)
Re: recognition and optimization of prefix computation or variants in rcmetzger@grandecom.net (rcmetzger) (2008-06-23)
| List of all articles for this month |

From: idbaxter@semdesigns.com
Newsgroups: comp.compilers
Date: Sat, 21 Jun 2008 03:20:54 -0700 (PDT)
Organization: Compilers Central
References: 08-06-035
Keywords: optimize, C
Posted-Date: 21 Jun 2008 12:59:38 EDT

On Jun 17, 3:34 am, sandy...@gmail.com wrote:
> Hi,
>
> Does the current C/C++ compilers in industry recognize idioms of the
> form of prefix computation and transform them? ....


I doubt it. I think what you really want is a way to transform C++
code into the form that you want. Then you can decide what custom
optimizations you desire.


The DMS Software Reengineering Toolkit can be used to transform C++
source to C++ source code. You can code your transformation pretty
much as you stated it. In practice, you'll code transformations with
source patterns of interest, target patterns that are desired (both
written in C++ surface syntax) and add additional checks to verify
that certain semantic conditions are valid.


See http://www.semanticdesigns.com/Products/FrontEnds/CppFrontEnd.html
and the link to DMS on that page. The website also has a publications
page that has papers on transforming large, complex C++ codes for
avionics software.


Ira Baxter, CTO
Semantic Designs



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.