gcrt0.c
来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· C语言 代码 · 共 42 行
C
42 行
/* gcrt0.c Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.This file is part of Cygwin.This software is a copyrighted work licensed under the terms of theCygwin license. Please consult the file "CYGWIN_LICENSE" fordetails. */#include <sys/types.h>#include <stdlib.h>extern u_char etext asm ("etext");extern u_char eprol asm ("__eprol");extern void _mcleanup (void);extern void monstartup (u_long, u_long);void _monstartup (void) __attribute__((__constructor__));/* startup initialization for -pg support */void_monstartup (void){ static int called; /* Guard against multiple calls that may happen if DLLs are linked with profile option set as well. Addede side benefit is that it makes profiling backward compatible (GCC used to emit a call to _monstartup when compiling main with profiling enabled). */ if (called++) return; monstartup ((u_long) &eprol, (u_long) &etext); atexit (&_mcleanup);}asm (".text");asm ("__eprol:");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?