不能编译/安装在iPhone上MRC和MCR协处理器指令? [英] Can't compile/assemble MRC and MCR coprocessor instructions on iPhone?

查看:330
本文介绍了不能编译/安装在iPhone上MRC和MCR协处理器指令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎不能够组装MCR和MRC的ARMv7指令(这些是协处理器访问指令)与iPhone?我有一些在与code的Sourcery GCC工具链建设一个不同的CortexA8芯片(采用OMAP芯片)工作,很好地一些内联汇编块这些说明,但苹果的装配 - 铛汇编和他们的GNU汇编编译 - 扔了错误:

I don't seem to be able to assemble the MCR and MRC ARMv7 instructions (these are coprocessor access instructions) with iPhone? I have some of these instructions in some inline assembly blocks that work quite nicely with the Code Sourcery gcc toolchain building for a different CortexA8 chip (an OMAP chip), but Apple's assemblers - the Clang assembler and their build of the gnu assembler - throw up errors:

{standard input}:41:bad instruction `MRC p15,0,r2,C9,C12,0'
{standard input}:56:bad instruction `MCR p15,0,r0,C9,C12,0'
{standard input}:78:bad instruction `MCR p15,0,r0,C9,C12,1'
{standard input}:96:bad instruction `MCR p15,0,r0,C9,C12,2'
{standard input}:119:bad instruction `MCR p15,0,r2,C9,C12,4'
{standard input}:143:bad instruction `MCR p15,0,r0,C9,C12,5'
{standard input}:165:bad instruction `MCR p15,0,r0,C9,C13,1'
{standard input}:187:bad instruction `MCR p15,0,r0,C9,C13,2'
{standard input}:209:bad instruction `MCR p15,0,r0,C9,C13,0'
{standard input}:228:bad instruction `MRC p15,0,r0,C9,C13,0'
{standard input}:253:bad instruction `MRC p15,0,r0,C9,C13,2'

任何想法?

推荐答案

(原文关于这一问题的评论)

(Originally as a comment on the question)

随机猜测:你试图改变MRC到MRC?苹果有一个与写在大写什么麻烦一个相对古老的ARM汇编。

Random guess: have you tried changing "MRC" to "mrc"? Apple has a relatively ancient ARM assembler that has trouble with anything written in upper-case.

这篇关于不能编译/安装在iPhone上MRC和MCR协处理器指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆