bug-477835.c
来自「Small Device C Compiler 面向Inter8051」· C语言 代码 · 共 32 行
C
32 行
/* Registers not being saved. */#include <testfwk.h>/* In the following code BC is assigned a copy of fp, but bc is not saved across the call.*/voidfptr(void (*fp)(void)){ int i; for (i = 0; i < 50; i++) (*fp)();}void dummy(void (*fp)(void)){ UNUSED(fp);}/* This code has the same logic above, but bc is saved. */voidfptr2(void (*fp)(void)){ int i; void (*fp2)(void) = fp; for (i = 0; i < 50; i++) dummy(fp2);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?