Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!bbn!rochester!uhura.cc.rochester.edu!ur-valhalla!micropen!dave From: dave@micropen (David F. Carlson) Newsgroups: comp.unix.microport Subject: fix for missing info in SV/386 Keywords: prof.h ATT messed up Message-ID: <562@micropen> Date: 14 Oct 88 16:43:27 GMT Organization: Micropen Dirent Writing Systems, Pittsford, NY Lines: 32 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