LLVM cpp backend, does it replace c backend?

試著忘記壹切 提交于 2019-12-05 02:15:13

问题


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.

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


回答1:


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.

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

They are fundamentally different.



来源:https://stackoverflow.com/questions/11597664/llvm-cpp-backend-does-it-replace-c-backend

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!