Powerpc汇编编译学习笔记
本篇文章结合网上学习的部分知识,搭建对于Powerpc的编译环境。
1.准备
本人使用Fedora 33 64bit虚拟机
核心Binutils用于对二进制文件进行处理
下载:https://ftp.gnu.org/gnu/binutils/
Binutils里构成:
具体可参考:https://blog.csdn.net/liweigao01/article/details/88832175
说明doc:
as使用:https://sourceware.org/binutils/docs/as/index.htm
ld使用:https://sourceware.org/binutils/docs/ld/index.html
Binutils其他工具:https://sourceware.org/binutils/docs/binutils/index.html
推荐:此为C到Powerpc的交叉编译
http://blog.sina.com.cn/s/blog_70dd16910100y7vj.html
本项目主要是关于Powerpc 440的编译问题,本文主要研究对于Powerpc的汇编编译。
2.安装编译环境
as为Binutils中为处理GNU C 编译器gcc产生文件的汇编器,搭建汇编编译环境主要使用它。
虽然as主要处理由gcc生成的文件,但是其文档说到:
as is primarily intended to assemble the output of the GNU C compiler gcc for use by the linker ld. Nevertheless, we’ve tried to make as assemble correctly everything that other assemblers for the same machine would assemble.<