简体   繁体   English

iOS编程是否可以通过Clang和llvm虚拟化?

[英]Is iOS programming going virtual with Clang and llvm?

I dont understand the whole Clang and llvm thingy. 我不了解整个Clang和llvm的东西。 I asked myself if the code is running in a VM while runtime on the iOS device or wether it is going through a "VM" while compile time, for compile-time optimization and so on? 我问自己,代码是在iOS设备上运行时在VM中运行还是在编译时通过“ VM”运行,以进行编译时优化等?

LLVM is not a virtual machine in that sense of the word. 这个意义上讲,LLVM不是虚拟机。 The thing is that LLVM is a code generator that helps unifying compilers, languages and target processors/OSes. 关键是LLVM是代码生成器,可帮助统一编译器,语言和目标处理器/ OS。 LLVM is useful for compiler developers only. LLVM仅对编译器开发人员有用。 In fact, in the Clang compiler, it plays a major role, but that's entirely internal - what comes out of Clang is pure, native ARM/iOS machine code. 实际上,在Clang编译器中,它起着主要作用,但这完全是内部的-Clang产生的是纯本机ARM / iOS机器代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM