首页 > 代码库 > Capabilities and Limitations of Optimizing Compilers
Capabilities and Limitations of Optimizing Compilers
Computer Systems A Programmer‘s Perspective Second Edition
1 #include <stdio.h> 2 3 main(){ 4 int wr; 5 wr = func1(); 6 // wr=func2(); 7 printf("%d",wr); 8 } 9 10 int counter = 0; 11 int w(){ 12 return counter++; 13 } 14 15 int func1(){ 16 return w()+w()+w()+w(); 17 } 18 19 int func2(){ 20 return 4*w(); 21 }
Modern compilers employ sophisticated algorithms to determine what values are
computed in a program and how they are used.
Capabilities and Limitations of Optimizing Compilers
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。