C-Breeze

发布于 2022-09-18 18:39:46 字数 2692 浏览 18 评论 0

还不错的一个基础设施

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/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

全部不再 2022-09-25 18:39:46

在 AST 上进行所有分析和优化,有 C 后端和 ASM 后端。
不错啊,哪个学校的啊?目前还不提供代码下载。

挽心 2022-09-25 18:39:46

好像是 得克萨斯大学

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文