LLVM cpp后端,它替换c后端? [英] LLVM cpp backend, does it replace c backend?

查看:275
本文介绍了LLVM cpp后端,它替换c后端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是关于CPP后端,它的用途是否与C后端相同?
C后端是我最喜欢的LLVM功能之一,我很失望它被删除。

My question is regarding the CPP backend, does it serve the same purposes as the C backend? The C backend was one of my favorite LLVM features, and I'm very upset it was removed.

真正的区别是什么?
我最感谢任何帮助。

Whats the real differences? I' most appreciative of any help.

参考:
LLVM 3.1发行说明
C后端已删除...

Reference: The LLVM 3.1 Release Notes "The C backend has been removed ..."

推荐答案

CPP后端创建LLVM API调用以创建表示等价于LLVM程序集的AST。您可以在 http://llvm.org/demo/ 上尝试使用CPP后端,方法是选择LLVM C ++ API代码

The CPP backend creates LLVM API calls to create an AST that represent the equivalent of the LLVM assembly. You can try the CPP backend at http://llvm.org/demo/ by selecting the "LLVM C++ API code" Target.

C后端创建执行LLVM程序集语义的C代码。

The C backend creates C code that execute the semantics of the LLVM assembly.

他们根本不同。

这篇关于LLVM cpp后端,它替换c后端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆