Phoenix (compiler framework)

This book may need to be updated to reflect current knowledge.

|

Phoenix framework, being developed at Microsoft Research, is a framework for developing compilers as well as program analysis, testing and optimization tools, to be used as the back-end for future compiler technologies from Microsoft.[1] It is also available as an SDK, a pre-release build of which has been made accessible, to create compilers and code analysis tools using the Phoenix framework.

## Contents

* 1 Overview
* 2 Productization
* 3 References
* 4 External links

## Overview

Phoenix defines an intermediate representation (IR) for programs, using ASTs, control flow graphs, and an exception handling model. For any program to be handled by Phoenix, it needs to be converted to this representation. The specification for these file type-specific converters, called file readers in Phoenix terminology, is also specified. Phoenix comes included with readers for Portable Executable binary files, CIL and the output of the Visual C++ front-end.[2] Readers for other languages can be written using the Phoenix SDK, though separate tools such as lex and yacc need to be used to write the lexer and parser, respectively.

Once the program has been converted to the IR, the analysis and optimization tools can operate on that form. Phoenix includes a selection of tools - including block counting, memory analysis, code coverage, code analysis and optimization.[3] The Phoenix SDK can be used to write and plug-in other tools as well. Code generation is handled by providing architecture-specific (either physical architecture of the processor or a virtual machine architecture) file writers. Phoenix provides the `c2.dll` compiler backend, which it shares with Visual C++, to handle analysis, optimization and code generation for the x86 architecture. Writers for other architectures must be provided separately.

As a result of the modular architecture, any component can be replaced without affecting the rest of the system. For example, to target the compiler to a different architecture, only the file writer specific to the architecture needs to be changed, keeping the rest of the stack unchanged. To create a compiler for a new language, only the readers need to be provided.

## Productization

A Phoenix component (phx.dll) is used for some of the static analysis (FxCop) in Visual Studio 2010.[4] (The Phoenix compiler itself, which is required for most instrumentation insertion to work, is not included with Visual Studio.)

## References

1. ↑ "Phoenix Academic Program". http://research.microsoft.com/phoenix/. Retrieved 2007-11-16.
2. ↑ "Phoenix Compiler Backend". https://connect.microsoft.com/content/content.aspx?ContentID=4527&SiteID=214. Retrieved 2007-11-16.
3. ↑ "Phoenix based tools". https://connect.microsoft.com/content/content.aspx?ContentID=4526&SiteID=214. Retrieved 2007-11-16.
4. ↑ "VS 2010 Beta 2 Code Analysis In-Depth First Look". http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/10/19/vs-2010-beta-2-code-analysis-in-depth-first-look.aspx. Retrieved 2010-03-30.

## External links

* Official Phoenix site
* Phoenix SDK June 2008 CTP Release (latest release to the moment of writing)

* v
* t
* e

Microsoft Research (MSR)

Main
projects|

| Languages and compilers|

* Polyphonic C#
* Cω
* Spec#
* Sing#
* Bartok
* F*
* Phoenix

|

Distributed/grid computing|

* Bigtop
* Gridline
* BitVault
* Orleans

Internet and networking|

* AjaxView
* Avalanche
* Conference XP
* Gazelle
* HoneyMonkey
* Penny Black
* Wallop

Other projects|

* Cognitive Toolkit
* IllumiRoom
* Image Composite Editor
* MyLifeBits
* LiveStation
* SLAM
* Terminator
* WorldWide Telescope
* PhotoDNA
* Z3 Theorem Prover

Operating systems|

* Barrelfish
* HomeOS
* Midori
* Singularity
* Verve

APIs|

* Joins
* Accelerator
* Dryad
* SXM

Launched as products|

* C#
* Comic Chat
* Detours
* F#
* Sideshow
* PixelSense (TouchLight)
* SenseCam
* ClearType
* Group Shot
* Allegiance
* TrueSkill
* Songsmith
* Xbox
* Kinect

MSR Labs
applied
research|

| Live Labs|

| Current|

* Pivot
* Seadragon
* Deep Zoom
* DeepZoomPix

|

Discontinued|

* Deepfish
* Listas
* Live Clipboard
* Photosynth
* Volta

FUSE Labs|

* Bing Twitter
* Docs.com
* Kodu

Other labs|

* Academic Search
* adCenter Labs
* Office Labs

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Phoenix_(compiler_framework)&oldid=271649"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template