Powerpc汇编编译学习笔记

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.<

  • 24
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值