免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1544 | 回复: 2

C-Breeze [复制链接]

论坛徽章:
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
发表于 2009-03-24 22:47 |显示全部楼层
在 AST 上进行所有分析和优化,有 C 后端和 ASM 后端。
不错啊,哪个学校的啊?目前还不提供代码下载。

论坛徽章:
0
发表于 2009-03-26 07:10 |显示全部楼层
好像是 得克萨斯大学
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会

【架构革新 高效可控】2020年12月21日-23日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP