您的位置:首页 > 理论基础

深入理解计算机系统阅读笔记-优化程序性能

2008-10-29 16:07 1006 查看
1。memory aliasing problem

void t(int *x, int *y)
{
  *x += *y;
  *x += *y;
}

void t2(int *x, int *y)
{
  *x += 2* *y;
}

point the differ of the two functions. why function t can't be optimized to function t2 ?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  优化 function