我要评分
获取效率
正确性
完整性
易理解

Overview

Generally, a compiler has two roles:

  • As a translator, it translates source code written in a programming language (original language) into another programming language (target language). This process emphasizes language equivalence.
  • As an optimizer, it uses various optimization algorithms to reduce instruction redundancy or improve instruction efficiency.

There are hundreds of compilation optimization algorithms in BiSheng compiler, such as function inlining, constant propagation, loop optimization, and automatic vectorization.