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

📄 xprofile-md.h

📁 kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的java包。
💻 H
字号:
/* * xprofile-md.h * Interface functions to the profiling code * * Copyright (c) 2001 University of Utah and the Flux Group. * All rights reserved. * * @JANOSVM_CONFIG_I386_LINUX_LICENSE@ */#ifndef __i386_linux_xprofile_md_h#define __i386_linux_xprofile_md_h/* * Unfortunately, I can't get linux to export a symbol to the gmonparam * structure (it doesn't link for some reason)...  So we can't get any early * recordings. */static inline struct gmonparam *getGmonParam(void){	return 0;}#define _MCOUNT_DECL _mcount#define _KAFFE_OVERRIDE_MCOUNT_DEF void _MCOUNT_DECL __P((uintp frompc, uintp selfpc))#if (__GNUC__ < 2) || (__GNUC_MINOR__ < 9)#define _KAFFE_OVERRIDE_MCOUNT \void mcount(void) \{ \	uintp selfpc, frompc; \\	asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \	asm("movl (%%ebp),%0" : "=r" (frompc)); \	frompc = ((uintp *)frompc)[1]; \	_mcount(frompc, selfpc); \}#else#define _KAFFE_OVERRIDE_MCOUNT \void mcount(void) \{ \	uintp selfpc, frompc; \\	asm("movl (%%esp),%0" : "=r" (selfpc)); \	asm("movl 4(%%ebp),%0" : "=r" (frompc)); \	_mcount(frompc, selfpc); \}#endif#endif

⌨️ 快捷键说明

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