Linux下编译MIPS compiler
来源:互联网 发布:cf占卜抽奖软件 编辑:程序博客网 时间:2024/06/02 05:30
1. Download binutils & gcc & newlib
URL:http://sourceware.org/projects.html
[root@localhost mips]# lltotal 114768-rwxr--r-- 1 root root 19973532 Oct 16 09:56 binutils-2.22.tar.bz2-rwxr--r-- 1 root root 82884636 Oct 16 10:06 gcc-4.7.2.tar.bz2-rwxr--r-- 1 root root 14571004 Oct 16 09:53 newlib-1.20.0.tar.gz
2. Unpack
[root@localhost mips]# lltotal 114768drwxr-xr-x 17 root root 4096 Oct 17 11:06 binutils-2.22-rwxr--r-- 1 root root 19973532 Oct 16 09:56 binutils-2.22.tar.bz2drwxr-xr-x 33 1000 1000 4096 Oct 17 11:47 gcc-4.7.2-rwxr--r-- 1 root root 82884636 Oct 16 10:06 gcc-4.7.2.tar.bz2drwxrwxr-x 7 2608 2613 4096 Dec 20 2011 newlib-1.20.0-rwxr--r-- 1 root root 14571004 Oct 16 09:53 newlib-1.20.0.tar.gz
3. Execute the following command
[root@localhost mips]# mv newlib-1.20.0 gcc-4.7.2[root@localhost mips]# cd gcc-4.7.2[root@localhost gcc-4.7.2]# ln -s newlib-1.20.0/newlib .[root@localhost gcc-4.7.2]# ./contrib/download_prerequisites[root@localhost gcc-4.7.2]# cd -
4. Compile binutils
[root@localhost mips]# mkdir build_binutils/[root@localhost mips]# cd build_binutils/[root@localhost build_binutils]# ../binutils-2.22/configure --target=mips-elf --with-arch-32=xcpu --with-arch-64= --with-abi=eabi --disable-shared --enable-lto --enable-gold --disable-libmudflap --disable-libssp --disable-libgomp --disable-nls --disable-libstdcxx-pch --disable-sgxx-sde-multilibs --with-gnu-as --with-gnu-ld --with-pkgversion="bintutils 2.22 Coolsand 2012.09-01" --prefix=$HOME/usr/gnu-tools/mips-elf[root@localhost build_binutils]# make -j4[root@localhost build_binutils]# make install[root@localhost build_binutils]# cd -
5. Compile gcc
[root@localhost mips]# mkdir build_gcc/[root@localhost mips]# cd build_gcc/[root@localhost build_gcc]# ../gcc-4.7.2/configure --target=mips-elf --with-arch-32=xcpu --with-arch-64= --with-abi=eabi --with-float=soft --enable-languages=c,c++ --disable-shared --enable-lto --with-newlib --disable-multilib --enable-plugin --enable-gold --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-nls --disable-libstdcxx-pch --disable-sgxx-sde-multilibs --with-gnu-as --with-gnu-ld --with-pkgversion="GCC 4.7.2 Coolsand 2012.09-01" --prefix=$HOME/usr/gnu-tools/mips-elf[root@localhost build_gcc]# make -j4[root@localhost build_gcc]# make install[root@localhost build_gcc]# cd -
- Linux下编译MIPS compiler
- MIPS下编译ucos
- 【Linux】Linux下搭建MIPS交叉编译环境
- Mips下交叉编译dropbear
- 编译mips下的busybox
- mips下交叉编译iperf
- mips下编译iperf2.0.5
- 编译 Linux 驱动 mips cdc_ether
- Ubuntu下搭建MIPS交叉编译环境
- 在mips下成功交叉编译cairo
- Ubuntu下搭建MIPS交叉编译环境
- 编译mips下开发板的strace
- Ubuntu下搭建MIPS交叉编译环境
- Ubuntu下搭建MIPS交叉编译环境
- [转载] 在Linux下用buildroot搭建mips/arm的交叉编译平台
- Linux下MIPS平台交叉编译FFMpeg库 及使用库截取视频中的某一帧
- Linux下MIPS平台交叉编译FFMpeg库 及使用库截取视频中的某一帧
- Ubuntu 14.04 LTS下使用mips-linux-gnu-gcc交叉编译OpenCV所需库
- Qt网络编程—TCP/IP(一)
- // 程序员宝典 71页 面试题9 自覆盖的错觉,地址也是一个数,(右端未做类型检查被赋值)
- 并归排序
- Web Service简介及开发实例
- n皇后问题递归算法(回溯法)
- Linux下编译MIPS compiler
- Android开发者应该深入学习的10个开源应用项目
- 并行计算 基本概念
- Linux常见面试题
- //命令行参数使用。
- 个人理解 java虚拟机中的符号引用和直接引用
- // c 程序设计设计 教材例8.16 指向函数的指针。 实现同一函数,根据参数执行不同的子函数。
- hdu 1010 Tempter Of TheBone
- // 函数指针的使用,使用c++编译器。