[comp.unix.microport] fix for missing info in SV/386

dave@micropen (David F. Carlson) (10/14/88)

AT&T messed up the initial 386 release of /usr/include/prof.h in
all Microport SVR3.0 and also in Interactive's product also.

If you need to profile code within a subroutine you need a MARK
macro defined in prof.h.  I passed my code for this onto Microport
but my SV/386 3.0:3.0e I just got from them doesn't include a macro
for 386.  Good luck profiling without it!!

-----------cut here------------
#ifdef i386
#define MARK(L)	{\
		asm("	.data");\
		asm("	.align	4");\
		asm(".L.:");\
		asm("	.long 0");\
		asm("	.text");\
		asm("M.L:");\
		asm("	movl	$.L.,%edx");\
		asm("	call  _mcount");\
		}
#endif
-------------end of prof.h 386---

This code is testing and it works just fine.  Thank goodness I don't
have to do asm coding very much here.  What a mess.


-- 
David F. Carlson, Micropen, Inc.
micropen!dave@ee.rochester.edu

"The faster I go, the behinder I get." --Lewis Carroll