Profiler vs. interpreter

Edouard G. Parmelan Edouard.Parmelan at quadratec.fr
Wed Jul 28 08:32:12 PDT 1999


Pavel Roskin wrote:

> Looks like config/i386/common.h enables profiler in all cases, but there
> is no profiler support in kaffe/kaffevm/intrp/
> 
> Either kaffe/kaffevm/intrp/ needs updating or config/i386/common.h needs
> fixing
Oops, sorry for that :(
Quick patch follow.
-- 
Edouard G. Parmelan                         Ingenieur Developpeur
Quadratec - Parc Club "Orsay Universite" - 14/16,rue Jean Rostand
91893 Orsay Cedex - FRANCE               Phone (+33)1 69 33 20 80
Email: edouard.parmelan at quadratec.fr http://membres.tripod.fr/egp
-------------- next part --------------
Index: config/i386/common.h
===================================================================
RCS file: /home/cvspublic/kaffe/config/i386/common.h,v
retrieving revision 1.10
diff -u -r1.10 common.h
--- common.h	1999/07/27 23:26:21	1.10
+++ common.h	1999/07/28 15:43:14
@@ -62,6 +62,7 @@
 #endif /* NEED_sysdepCallMethod */
 
 
+#if defined(TRANSLATOR)
 #if defined(__GNUC__)
 #define KAFFE_PROFILER 1
 #endif
@@ -77,6 +78,7 @@
 #define profiler_get_clicks(COUNTER)	\
 	asm volatile (".byte 0xf; .byte 0x31" /* "rdtsc" */ : "=A" (COUNTER))
 
+#endif
 #endif
 
 #endif


More information about the kaffe mailing list