歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RedHat使用心得及安裝simplesim 2.0

RedHat使用心得及安裝simplesim 2.0

日期:2017/2/28 16:19:06   编辑:Linux教程

這個東西沒有Ubuntu好使,我拿到的這個虛擬機是已經裝好了simplescalar3.0的版本,而且基本的配置環境都配置了,但是最矛盾的一些東西確實沒有裝,更新yum和fontsconfig、rpm、pkg等rpm都沒有裝,網絡環境也沒有配置,還沒有賬號……為了節省時間,只好去網上下rpm(這東西真是不好下)然後扔進/mnt/hgfs共享文件的位置再折騰(什麼依賴關系都不管了,直接忽略)。安裝simplesim這個東西,這個低版本的東西真是不好折騰,改了好多東西,最後終於安好了。

過程簡單寫一下:

1、tar 解壓文件

2、安裝binutils-2.5.2

cd $IDIR/binutils-2.5.2
./configure --host=$HOST --target=ssbig-na-sstrix --with-gnu-as
--with-gnu-ld --prefix=$IDIR
make

(此時遇到兩個錯誤,將dummy.c文件中的內容全部刪除(即將dummy.c變成空文件)然後再make一次)
make install

3、安裝simplesim-2.0

cd $IDIR/simplesim-2.0
make

4、安裝gcc-2.6.3
cd $IDIR/gcc-2.6.3
./configure --host=$HOST --target=ssbig-na-sstrix --with-gnu-as
--with-gnu-ld --prefix=$IDIR
make LANGUAGES=c

(1、cccp.c:175行加上#define bsd4_4

2、sdbout.c:前面加上#undef USG

3、gcc.c:在167行加上#define bsd4_4

4、g++.c:在85行加上#define bsd4_4

5、g++.c:清空函數(pfatal_with_name))
../simplesim-2.0/sim-safe ./enquire -f >! float.h-cross
make install

5.ok,just test

cd $IDIR/simplesim-2.0
./sim-outorder tests/bin.big/test-math

Copyright © Linux教程網 All Rights Reserved