天天看點

Microsoft Has Open Sourced the Common Compiler Infrastructure

CCI does not actually load the assemblies it accesses, but it reads/writes their metadata, and it does not open a dependency assembly until it is needed. When working with CLR PE files, CCI can write to them any object that implements the metadata model interfaces (Microsoft.Cci.MetadataModel).

The CCI: Metadata API contains:

a Metadata Model

a CLR PE Reader

a CLR PE Writer

a metadata helper class (static methods in Microsoft.Cci.MetadataHelper.dll)

implementation classes for the Metadata Model interfaces

a Source Model to work with source files

a PDB reader

a PDB writer

The CCI: Code and AST project contains:

a Code Model used to read statements and expressions

a Mutable Code Model which represents a modified code model since the Code Model offers a read-only view of the code

an AST Model to extract AST nodes. “AST nodes take care of things such as binding names to definitions, overload resolution and error checking. The AST components are designed to support incremental compilation, while allowing for efficient projection onto the immutable code model.”

 from:http://www.infoq.com/news/2009/04/Open-Source-CCI;jsessionid=B169C7533F915EF866B37F43FEC7434C

本文轉自Justin部落格園部落格,原文連結:http://www.cnblogs.com/justinw/archive/2009/04/22/1441587.html,如需轉載請自行聯系原作者

繼續閱讀