EDG C++ 编译器是开源的
EDG C++ Compiler is open source

原始链接: https://github.com/edgcpp/compiler

EDG C/C++ 编译器是一个开源项目,核心是一个高度可配置的 C/C++ 前端。它强调与 Clang、GCC 和 MSVC 的兼容性,包括缺陷仿真、完善的文档,以及将编译器适配到多种产品的能力。 该代码库还包括: - 一个用于将 C++ 程序编译为 C 代码的 C 代码生成后端; - 一个用于源到源转换的 C++ 代码生成后端; - 一个用于自动实例化模板的预链接器; - 一个精简运行时库; - 中间语言工具; - 名称反修饰工具; - 开发工具。 对于大多数用户,建议使用 Git 的部分克隆方式: `git clone --filter=blob:none [email protected]:edgcpp/compiler.git` 有关文档、构建说明、贡献指南、开发环境和教程,可通过项目的文档资源获取。

``` 黑客新闻 最新 | 往期 | 评论 | 提问 | 展示 | 工作 | 提交 登录 [重复] EDG C++ 编译器现已开源 ( github.com/edgcpp ) 26 分 由 zx2c4 发布 1 天前 | 隐藏 | 往期 | 收藏 | 1 条评论 帮助 WalterGR 1 天前 [–] 重复自: https://news.ycombinator.com/item?id=49913192 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请加入 YC | 联系我们 搜索: ```
相关文章

原文

Welcome to the open source EDG C/C++ compiler project!

The EDG C/C++ front end is the primary focus of this repository. The EDG front end is known for: its excellent parsing compatibility and bug emulation, to make sure source that compiles with Clang, GCC, and MSVC compiles with EDG; extensive documentation, to assist with development and modification; and extreme configurability, to allow it to be derived for use into a large number of C/C++ oriented products.

The compiler project also includes: a C-generating back end, which can be used to generate C code for C++ programs; a C++-generating back end, which is useful for source-to-source transformation applications; a prelinker, which handles automatic template instantiation; a minimal runtime support library (but not any "real" libraries, e.g., for stream I/O); utilities to write the intermediate language to a file, read it back in, and display it in human-readable form; a name demangler; and a collection of purpose built development tools.

See the documentation on: https://edgcpp.org/doc/.

To get started, it's recommended for most people to clone the repository using a partial clone (this keeps a full copy of the git history while only downloading the most recent version of each file, git can implicitly fetch older versions as needed):

git clone --filter=blob:none [email protected]:edgcpp/compiler.git

If you are looking to build the front end from source and use it, please see the build instructions.

If you are looking to make changes to the front end, please see the contribution guide and the development guide for quickly getting setup.

Tips, Tricks, & Tutorials

To further aid humans and AI agents in product development there is additional documentation for tips, tricks, and tutorials that can be found in the development annex.

联系我们 contact @ memedata.com