更好的是,对于小型对象,J VM可以把分配工作完全优化掉,只把对象的字段放入寄存器。
Even better, for small objects, the JVM can optimize away the allocation entirely and simply hoist the object's fields into registers.
有时,语义上等同但采用两种不同方式编写的代码可能会使优化器在执行良好的寄存器分配上所花费的时间相差巨大。
At times, semantically equivalent code, written in two different ways, might cause the optimizer to have a more difficult time performing good register allocation.
这篇论文尝试解决优化编译器的后端中的两个重要的问题:指令选择和寄存器分配。
This thesis attacks two important issues in back end of an optimizing compiler: instruction selection and register allocation.
应用推荐