怎么把llvm IR转换成C代码? [英] How to convert llvm IR to c code?
本文介绍了怎么把llvm IR转换成C代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将llvm IR转换为c代码并保留其语义? 例如,我们能否先将C代码编译为llvm IR,然后再编译回另一段C代码.我不希望这两个文件相同.但是它们需要具有相同的功能. 谢谢
Is there any way to convert the llvm IR to c code and keep its semantics? For example, can we compile the c code first to llvm IR and then compile it back to another piece of c code. I don't expect that these two files will be the same. But they need to have the same functionality. Thanks
推荐答案
您可以将C后端与llc -march=c
这篇关于怎么把llvm IR转换成C代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文