有些编译器支持“生命周期分割”(live - range splitting),也就是说在程序的不同部分,变量可以被分配到不同的寄存器或者内存中。
Some compilers support live-range splitting, where a variable can be allocated to different registers as well as to memory in different parts of the function.
假如开发者忘记调用XyzRelease函数,那时资源就会泄露,因为编译器不能跟踪一个对象实例的生命周期。
If the developer forgets to call XyzRelease, then resources are leaked because the compiler doesn't help to track the lifetime of an object instance.
应用推荐