inline-limit-1.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 39 行
C
39 行
/* APPLE LOCAL file 4209014 4210936 *//* { dg-do compile } *//* { dg-options "-Os" } *//* Call to inlinex1 should be inlined. *//* { dg-final { scan-assembler-not "(\tcall|\tbl)\[ a-zA-Z0-9_\]*inlinex1" } } *//* Call to calleex1 should be called, not inlined. *//* { dg-final { scan-assembler "(\tcall|\tbl)\[ a-zA-Z0-9_\]*calleex1" } } *//* Insure that trivial callees (up to 30 "estimated insns") are inlined only if marked 'inline' in C++/Obj-C++. It's unfortunate, but this testcase is expected to require revision every time the GCC inlining heuristics change. */extern void bulk (int); /* CALLs are assumed to generate 10 'estimated insns'. *//* Inlining limits for inline and non-inline functions are currently identical for C++. Empirically, a body with one will be inlined, and a body with two calls will not. */voidcalleex1 (void){ bulk (1); bulk (2);}void inlineinlinex1 (void){ bulk (1);}intmain (){ calleex1 (); inlinex1 (); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?