免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1703 | 回复: 2
打印 上一主题 下一主题

C-Breeze [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-24 22:01 |只看该作者 |倒序浏览
还不错的一个基础设施

What is C-Breeze?
  C-Breeze is an infrastructure for building C compilers. It is written in C++, and consists of a set of classes for representing a C program as an abstract syntax tree (AST). It includes many support classes for inspecting, manipulating, and analyzing the program in the AST form. We also provide a front end that parses C code (ANSI/ISO 9899-1990 standard) and generates the initial AST.

Building a compiler with C-Breeze
  The overall process of building a C-Breeze compiler is as follows:

Download and upack the C-Breeze source.
Fix the Makefile.inc to reflect your local configuration.
Compile the classes to produce libc-breeze.a
Define one or more new compiler Phases.
Compile your new Phases and link against libc-breeze.a to produce an executable.


System requirements
  The C-Breeze code itself is quite portable, but the C compilers built using C-Breeze can only compile C89 code. Therefore, C-Breeze compilers must have a C89-compliant preprocessor and C89-friendly system header files. We have found that the following configuration works well:

Compile the C-Breeze classes using g++ 3.x
Provide gcc 2.95.x (and accompanying header files) for your C-Breeze compiler to use as the preprocessor.

Citing C-Breeze
  If you incorporate C-Breeze into your research, please let us know -- and please use the following citation in your publications:

The C-Breeze Compiler Infrastructure
Calvin Lin, Samuel Z. Guyer, Daniel Jimenez
TR-01-43, The University of Texas at Austin, November, 2001.


Passes
  C-Breeze provides some built-in passes that process C code at various levels:

AST level passes
  After initial parsing, C-Breeze represents C programs in a high-level AST form.

CFG/Dismantled level passes
  Most analysis and optimization passes use a dismantled form of the AST that resembles a three-address code.

Backend passes
  We currently provide an assembly code backend as well as a C-code backend ("unparsing"


http://www.cs.utexas.edu/users/c-breeze/

论坛徽章:
0
2 [报告]
发表于 2009-03-24 22:47 |只看该作者
在 AST 上进行所有分析和优化,有 C 后端和 ASM 后端。
不错啊,哪个学校的啊?目前还不提供代码下载。

论坛徽章:
0
3 [报告]
发表于 2009-03-26 07:10 |只看该作者
好像是 得克萨斯大学
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP