RedHat使用心得及安装simplesim 2.0


这个东西没有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

相关内容