comparison src/emacs.c @ 70965:80022e83a5c2

(main) [PROFILING]: Enable also for __MINGW32__. [__MINGW32__]: MinGW-specific declaration of `etext'.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 26 May 2006 18:45:09 +0000
parents 77206b6b6ec5
children 31f876da25bf 46b1096093f5 a8190f7e546e
comparison
equal deleted inserted replaced
70964:e5adfcfcffa0 70965:80022e83a5c2
1747 } 1747 }
1748 } 1748 }
1749 #endif 1749 #endif
1750 } 1750 }
1751 1751
1752 /* Set up for profiling. This is known to work on FreeBSD and 1752 /* Set up for profiling. This is known to work on FreeBSD,
1753 GNU/Linux. It might work on some other systems too. Give it a 1753 GNU/Linux and MinGW. It might work on some other systems too.
1754 try and tell us if it works on your system. To compile for 1754 Give it a try and tell us if it works on your system. To compile
1755 profiling use something like `make CFLAGS="-pg -g -O -DPROFILING=1'. */ 1755 for profiling use something like:
1756 #if defined (__FreeBSD__) || defined (GNU_LINUX) 1756 `make CFLAGS="-pg -g -O -DPROFILING=1'. */
1757 #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
1757 #ifdef PROFILING 1758 #ifdef PROFILING
1758 if (initialized) 1759 if (initialized)
1759 { 1760 {
1760 extern void _mcleanup (); 1761 extern void _mcleanup ();
1762 #ifdef __MINGW32__
1763 extern unsigned char etext asm ("etext");
1764 #else
1761 extern char etext; 1765 extern char etext;
1766 #endif
1762 extern void safe_bcopy (); 1767 extern void safe_bcopy ();
1763 extern void dump_opcode_frequencies (); 1768 extern void dump_opcode_frequencies ();
1764 1769
1765 atexit (_mcleanup); 1770 atexit (_mcleanup);
1766 /* This uses safe_bcopy because that function comes first in the 1771 /* This uses safe_bcopy because that function comes first in the