Prophet 安装过程

1.前期准备
操作系统:ubuntu11.10或9.10
gcc,g++:4.2
csh,bison,flex
2.安装过程
--检测系统环境并安装相应的环境
gcc -v
g++ -v
sudo apt-get install gcc-4.2 g++-4.2
/*如果没有4.2版本,要更新源
sudo gedit /etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse
sudo apt-get update
报错:
动态 MMap 没有空间了。请增大APT::Cache-Limit 的大小
google解决方案:
编辑 sudo gedit /etc/apt/apt.conf(如果没有apt.conf这个文件就新建一个)
在里面增加或者修改以下参数,把后面的数字尽量的调大即可,如果调大后重复出现该问 题,继续增加数字即可

APT::Cache-Limit 99999999;
再次安装,OK!

sudo apt-get install gcc-4.2 g++-4.2
*/
最后,将gcc/g++软链接到gcc-4.2/g++-4.2

cd /usr/bin
sudo rm gcc g++
sudo ln -s gcc-4.2 gcc -f
sudo ln -s g++-4.2 g++ -f
sudo apt-get install csh flex bison
sudo apt-get install libxaw7-dev libxaw7//不需要libxaw-headers

--交叉编译(binutils)
(0)cd /home/alex/Prophet/prophet_ssl/binutils-2.18.50
(1)./configure --prefix=${HOME}/Prophet/prophet_ssl/toolchain --target=mipsel-ecoff --disable-nls --enable-shared
(2)make clean
(3)make
(4)make install
(5)把${HOME}/Prophet/prophet_ssl/toolchain/mipsel-ecoff/bin生成的所有可执行文件拷贝到${HOME}/Prophet/prophet_ssl/run下
--模拟器安装(prophet_vmips_pipeline)
(0)cd/home/alex/Prophet/prophet_ssl/prophet_vmips_pipeline
(1)./configure --sysconfdir=$HOME/Prophet/prophet_ssl/run
//如果无执行权限的话,使用chmod +x configure
(2)make clean
(3)make
(4)将prophet_vmips_pipeline生成的prophet_vmips、vmipsrc 和 inst_cost.ini 拷贝到${HOME}/Prophet/prophet_ssl/run下
--演示
(0)cd Prophet
(1)./setup_suif
(2) backc2mips work/testcase/health/health.c

你可能感兴趣的:(Speculative,Threeading)