Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第二部分
来源:互联网 发布:租用阿里云vps 编辑:程序博客网 时间:2024/05/01 00:04
nstalling GCC Cross-Compiler
This is the important step where most of the newbies (including me) are/were struggling. So please follow these steps carefully.
1
$
cd
$IDIR
2
$
tar
xzvf gcc-2.7.2.3.ss_.
tar
.gz
3
$
cd
gcc-2.7.2.3
4
$
export
PATH=$PATH:/home/YOUR_USER_NAME/simplescalar/sslittle-na-sstrix/bin
5
$ ./configure –host=$HOST –target=$TARGET –with-gnu-as –with-gnu-ld –prefix=$IDIR
Now before you proceed ahead, there are quite a few corrections that have to be made in some files:
1.) Change the Makefile at line 130, by appending –I/usr/include to the end of the line
To do so you can use command
1
$ gedit Makefile
2.) Edit line 60 of protoize.c, and replace
#include <varargs.h> with #include <stdarg.h>
To do so you can use command
1
$
chmod
+w protoize.c
2
$ gedit protoize.c
—
3.) Edit obstack.h at line 341 and change
*((void **)__o->next_free)++=((void *)datum);
with
*((void **)__o->next_free++)=((void *)datum);
To do so you can use the following command
1
$
chmod
+w obstack.h
2
$ gedit obstack.h
—
4.) Copy the patched files located in the patched directory to avoid some parse errors while compiling. To do so use the following command.
1
$
cp
./patched/sys/cdefs.h ../sslittle-na-sstrix/include/sys/cdefs.h
2
$
cp
../sslittle-na-sstrix/lib/libc.a ../lib/
3
$
cp
../sslittle-na-sstrix/lib/crt0.o ../lib/
*If you dont find the patched directory in your browser, you probably didnt unrar it properly. Again unrar the GCC tar file “at a different location” (say your Desktop) and copy from it.
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第二部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第一部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第三部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第四部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar
- simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar
- 在Ubuntu下安装SimpleScalar
- Ubuntu 安装SimpleScalar过程
- Ubuntu 安装SimpleScalar过程
- Ubuntu 14.10安装simplescalar
- 在Ubuntu12.04上安装SimpleScalar的方法
- Simplescalar在Ubuntu12.04 64位上的安装流程
- ubuntu9.10安装simplescalar
- simplescalar安装手册
- simplescalar自动安装
- Simplescalar安装流程
- SimpleScalar的安装与配置
- simplescalar模拟器
- 计算机图形学Cohen_Sutherland算法裁剪线段
- 若人生为棋
- linux的nohup命令的用法
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第一部分
- Java中的泛型
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第二部分
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第三部分
- LG发狠,12款电视齐上市
- Computer Architecture project——simplescalar under Ubuntu/在Ubuntu10.04下安装simplescalar第四部分
- ubuntu下安装和配置CVS
- gdb基本使用方法简介
- GDB调试及使用实例2
- float.h
- getopt 详解 getopt与optarg