Showing posts with label SimpleScalar. Show all posts
Showing posts with label SimpleScalar. Show all posts

Monday, November 14, 2011

SimpleScalar Alpha Compile Problems

If you are just trying to install the alpha configurations and you are getting problems:

-----------------------------------------------------------------------------------

cd $IDIR/simplesim-3.0
make config-alpha
make

If it throws an error, and it most likely will you have to change some more source code.

Open machine.h in the simplesim folder.

Move the line (line 224): extern enum md_opcode md_mask2op[];
below the definition of md_opcode (14 lines down line 238 I believe. It just needs to be after the full definition of md_opcode )

---------------------------------------------------------------------------------

Original Source: http://atchleyfam.com/2010/12/09/running-simplescalar-on-ubuntu-in-alpha-config/

Weird Compile Errors

If you end up with commands that aren't recognized,

The example I have is in Compiling simplescalar commands
it says that "-redir:prog " was not found which is complete BS.

The problem could be....if you copied it from a pdf or from another word processor:

- <----those are all different ascii hyphens. For some reason they got converted to the middle one there.

Anyway just delete and put the correct ones

Thursday, November 10, 2011

SimpleScalar Problem with archives, .a files

If you get:
"could not read symbols: Archive has no index; run ranlib to add one
make: *** [cjpeg] Error 1"


www.ict.kth.se/courses/IS2202/ranlib
www.ict.kth.se/courses/IS2202/ar

Put in $IDIR/bin and rename

Float.h Errors

If you see:
"float.h values not know for cross compiler"

Steps:
make LANGUAGES=c CFLAGS=-O CC="gcc -m32"
make enquire
$IDIR/simplesim-3.0/sim-safe ./enquire -f > float.h-cross
make LANGUAGES=c CFLAGS=-O CC="gcc -m32" install

Original Source:

Now if you get an error with equire:
. / Xgcc-B. /-DCROSS_COMPILE-DIN_GCC-g -I./include -I/usr/include-DNO_MEM-DNO_LONG_DOUBLE_IO-O0-I.-C. / Enquire.c
In file included from / usr / include / sys / types.h: 270,
from. / enquire.c: 401:
/ usr / include / BITS / pthreadtypes.h: 99: Warning: unnamed struct / Union that defines no instances
. / xgcc-B. /-DCROSS_COMPILE-DIN_GCC -g-O -I./include -I/usr/include enquire.o Enquire
enquire.o: In function `fcheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
enquire.o: In function ` dCheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
enquire.o: In function `ldCheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
make: *** [Enquire] Error 1

Solution:
The first 8 lines in enquire.c add:
# Define _GNU_SOURCE
That's it. Current problems is to use sim-cache and sim-outorder
execution encountered an error when gzip (gzip with sim-profile executive is normal; mcf with the implementation of these three are normal):

Original Source: http://daizw.blogspot.com/