RSIM Bug Report #25

Version of RSIM1.0
Bug number25
Bug class4
Date01/20/03
Reported byInternal
AffectsCompilation errors with some compilers
Files src/Processor/funcs.cc, src/Processor/mainsim.cc, incl/Processor/FastNews.h,

Problem Description

Some compilers generate errors with some of the names used in rsim source like xor, dirname, new.

Problem Fix

Apply one/all of the following steps depending on where you get the compilation error.

Step 1. Replace all instances of "xor" in src/Processor/funcs.cc with "boolXOR".

Step 2. Replace all instances of "dirname" in src/Processor/mainsim.cc with "DirectoryName".

Step 3. Replace line 84 in incl/Processor/FastNews.h.
Original code:
extern void *operator new(size_t, void *);
New code:
#include <new.h>

Step 4. For building the RSIM libraries, modify apps/utils/lib/Makefile. Remove fclose.o, fscanf.o, sscanf.o, and fflush.o from the list of object files to remove from the standard libc.a. Add flush.o to the list.