⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inliner-1.c

📁 linux下编程用 编译软件
💻 C
字号:
/* { dg-options "-O2 -fdump-tree-optimized" } */int a;int b[100];void abort (void);inline voidcold_function (){  int i;  for (i = 0; i < 99; i++)    if (b[i] / (b[i+1] + 1))      abort ();}inline voidhot_function (){  int i;  for (i = 0; i < 99; i++)    if (b[i] / (b[i+1] + 1))      abort ();}main (){  if (a)    cold_function ();  else    hot_function ();  return 0;}/* cold function should be inlined, while hot function should not.     Look for "cold_function () [tail call];" call statement not for the   declaration or other apperances of the string in dump.  *//* { dg-final-use { scan-tree-dump "cold_function ..;" "optimized"} } *//* { dg-final-use { scan-tree-dump-not "hot_function ..;" "optimized"} } *//* { dg-final-use { cleanup-tree-dump "optimized" } } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -