stdcall.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 28 行
C
28 行
/* APPLE LOCAL file 4284121 *//* { dg-do run } *//* { dg-options "-O2" } *//* Test stack computations with stdcall attribute. *//* Primarily for darwin, although should work elsewhere. */extern void abort();int ww = 5;int __attribute__((__stdcall__)) __attribute__((noinline)) bar(int x){ return ww+x;}int y = 5;int main() { volatile int xx = 3; int i; int z = bar(y); for (i=0; i<20; i++) { ww += 5; z += bar(y); } if (z!=1260) abort(); if (xx != 3) abort(); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?