InfoQ

News

Catching up with Phoenix

Posted by James Vastbinder on Aug 19, 2007 11:19 PM

Community
.NET
Topics
.NET Framework ,
Research
Tags
C++ ,
CLR ,
Code Generation ,
Phoenix ,
C#

Phoenix started in Microsoft Research as a project for building compilers and code analysis tools.  First released as a research development kit to educational institutions it is now being readied to be released to the community at large.  Back in February of this year Sarah Derstadt, a Program Manager at Microsoft, announced Phoenix as a Commercial Development Kit:

Use of Phoenix within the industry is still very restricted to internal research.  Over the next 6 months, the Phoenix team will be transitioning from the RDK/CDK release to our SDK.  This SDK will be available through a Beta program up until we ship with a future version of Visual Studio.

Kang Su provides a brief history of Phoenix:

Several years ago the Visual C++ was cranking out compiler backends, much as we do today, but there was a growing concern about the cost of retargeting the backend to generate code for new platforms (such as Itanium and the CLR, POWER, ARM, and later x64).  Doing this retargeting was a painful process, and a small group in the VC team decided that it would be worth creating a new backend infrastructure that would allow rapid retargeting to different platforms.

On how the VC++ team and MSR team connected Kang Su continues:

On the other side of the galaxy in Microsoft Research (MSR), they were doing some of the worlds most advanced binary rewriting and static analysis research.  This took place in different groups with largely overlapping functionality, yet no sharing of code.  When MSR got a whiff of this new project in Visual C++ land they were intrigued.   Eventually, Visual C++, MSR, and the CLR  teams decided they should join forces to create a new project which not only would be a rapid retargeting backend, but a new platform for doing program transformation and analysis.

And on the intended result of their joint work he concludes:

Additionally, the teams agreed Phoenix should be the code generation platform for all of Microsoft.

In July, Microsoft released a pre-release version of the SDK on Connect.  Phoenix provides a wide variety of building blocks for implementing a common intermediate representation such as:

  • block analysis
  • memory tracing
  • code coverage
  • fault injection
  • run-time profiling and feedback
  • ahead-of-time compilers
  • just-in-time compilers
  • code optimization
    • whole program
    • post-link
    • runtime

Microsoft intends to move from their current list of over 25 code generators to a single platform based on Phoneix.  What further makes Phoenix potentially groundbreaking is the introduction of transparency into the compiler and code generation process.  Thus, breaking the traditional model where the compiler is a black box.

Rumors by Greg Young Posted Aug 21, 2007 5:06 PM
  1. Back to top

    Rumors

    Aug 21, 2007 5:06 PM by Greg Young

    It is rumored that 4.0 will involve a move of the .NET JIT to use the Phoenix back-end

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.