#pragma ident "@(#)$RCSfile: trace.anal.c,v $ $Revision: 1.1.2.2 $ (DEC) $Date: 1995/04/27 19:49:57 $" #include #include #define BUFSIZE 65536 char buf[BUFSIZE]; FILE *file; void OpenFile() { file = stdout; assert(file != NULL); /* setbuffer(file,buf, BUFSIZE); */ } void InstReference(long pc) { pc |= 1L << 63; fprintf(file, "2 %lx\n", pc); fflush(file); } void DataReadReference(long address) { fprintf (file, "0 %lx\n", address); fflush(file); } void DataWriteReference(long address) { fprintf (file, "1 %lx\n", address); fflush(file); } void CloseFile() { fclose(file); }