LLVM and the future of optimization

后端 未结 7 1896
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 07:11

I realize that LLVM has a long way to go, but theoretically, can the optimizations that are in GCC/ICC/etc. for individual languages be applied to LLVM byte code? If so, does t

7条回答
  •  故里飘歌
    2021-02-19 07:51

    I don't know any details about the bytecode format used by LLVM but I think the answer to your question is no.

    Just consider the following: dynamic vs. static typing. A programming language which is dynamically typed probably will be slower than a statically typed language, because the majority of type checking is performed at run-time.

    There can also be some other differences between programming languages which may affect performance.

提交回复
热议问题