问题

arm-linux-gnueabihf-gcc -g -nostdlib -nostartfiles -c cc_asm.S -o cc_asm.o
cc_asm.S: Assembler messages:
cc_asm.S:22: Error: unexpected character `w' in type specifier
cc_asm.S:22: Error: bad instruction `ldr.w r7,[sp],#4'
cc_asm.S:32: Error: instruction not supported in Thumb16 mode -- `adds r7,#12'
cc_asm.S:34: Error: unexpected character `w' in type specifier
cc_asm.S:34: Error: bad instruction `ldr.w r7,[sp],#4'
cc_asm.S:45: Error: instruction not supported in Thumb16 mode -- `adds r7,#12'
cc_asm.S:47: Error: unexpected character `w' in type specifier
cc_asm.S:47: Error: bad instruction `ldr.w r7,[sp],#4'
cc_asm.S:58: Error: unexpected character `w' in type specifier
cc_asm.S:58: Error: bad instruction `ldr.w r7,[sp],#4'

产生情景arm32 汇编中解决方案
汇编代码中加入 .syntax unified

问题

arm-linux-gnueabihf-gcc -g -nostdlib -nostartfiles -c cc_asm.S -o cc_asm.o
cc_asm.S: Assembler messages:
cc_asm.S:22: Error: width suffixes are invalid in ARM mode -- `ldr.w r7,[sp],#4'
cc_asm.S:34: Error: width suffixes are invalid in ARM mode -- `ldr.w r7,[sp],#4'
cc_asm.S:47: Error: width suffixes are invalid in ARM mode -- `ldr.w r7,[sp],#4'
cc_asm.S:58: Error: width suffixes are invalid in ARM mode -- `ldr.w r7,[sp],#4'
产生情景arm32 汇编中解决方案
汇编代码中加入 .thumb

unexpected character `w‘ in type specifier 解决方案相关推荐

  1. es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法

    [现象]执行es命令时,报如下错误: {   "error" : {     "root_cause" : [       {         "ty ...

  2. C/C++|Error: C++ requires a type specifier for all declarations 的解决

    背景: 在用Vscode用C/C++写OJ题目的时候,出现了: Error: C++ requires a type specifier for all declarations 错误提示 解决过程: ...

  3. json解析报错:HttpMessageNotReadableException: JSON parse error: Unexpected character (‘/‘ (code 47))

    报错信息 at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 109] ...

  4. es --- Unexpected character (‘q‘ (code 113)): was expecting double-quote to start field name\n

    一阵子不用es又忘光光了,犯了个极其弱智的错误...   想查询name是shuai的记录,于是写下了下面这个语句: curl -X POST --header "Content-Type: ...

  5. editor does not contain a main type的解决方案

    editor does not contain a main type的解决方案 今天用eclipse,当打算run一个带有main函数的class时,出现editor does not contai ...

  6. phpredis报错信息:protocol error, got ‘o‘ as reply type byte解决方案

    phpredis报错信息:protocol error, got 'o' as reply type byte解决方案 参考文章: (1)phpredis报错信息:protocol error, go ...

  7. error: #79: expected a type specifier

    问题: error:  #79: expected a type specifier 错误:# 79:预期的类型说明符 原因: void xms20tp(u8 xx); XX已被定义IO口.

  8. C语言类型限定符(type specifier)(一)——volatile详细教程

    前言:C语言有几个类型限定符(type specifier),如C90中的const和volatile,C99中的restrict,C11中的_Atomic,除了const以外,很多书籍对于其他几个修 ...

  9. STM32 学习笔记 expected a type specifier

    User\main.c(16): error:  #79: expected a type specifier 1 GPIO_ResetBits(GPIOC,GPIO_Pin_13);//点亮LED小 ...

最新文章

  1. Docker 搭建elasticsearch 7.6.x集群
  2. ios开发跳转safari_iOS 跳转网页的四种方法
  3. fedora 不在sudoers文件中_Spring AOP中还有你不知道的JVM Class文件字节码转换知识!...
  4. python从2 1 2 2 2 63_Python从零开始第三章数据处理与分析python中的dplyr(2)
  5. 17、Flask实战第17天:Flask-cookie
  6. java md5算法_JAVA实现MD5算法
  7. 计算机原理的拼音,微机原理课程,the course of microcomputer principles,音标,读音,翻译,英文例句,英语词典...
  8. php机械相关毕业设计,PHP+MySQL毕业设计选题管理系统(含论文)
  9. Python进阶(一)Python中的内置函数、内置方法、私有属性和方法详解
  10. logback的日志文件中出现大量的ESC符号
  11. 语音芯片,语音合成芯片,嵌入式语音合成软件的区别
  12. 热敏电阻制作温度传感器的c语言,NTC热敏电阻温度测量和控制系统.doc
  13. 无需备份!!!动态磁盘转换为基本磁盘!!!绝对可用!!!
  14. 编写项目工作说明书(SOW)
  15. 红蜘蛛多媒体网络教室安装步骤:
  16. elasticsearch 分片(Shards)的理解
  17. 如何选择适合你的兴趣爱好(五十三),跳水
  18. 隐藏通信隧道技术(下)
  19. app消息推送服务器端,系统服务:APP消息推送服务
  20. 无线通信基础知识7:射频器件的基本参数3

热门文章

  1. PHY--PUSCH
  2. 前端html-常用分割线
  3. 【CSS】三行实现一个黑白网格背景(渐变)
  4. ajax nginx 转发 sessionid_百度、京东、网易、腾讯、淘宝等大厂都在用的Web服务器Nginx详解
  5. 使用runOnUiThread更新UI
  6. 软件使用说明书V1.0发布
  7. 计算机网络自顶向下-套接字编程作业
  8. idea中Rebuild是什么意思
  9. 测试分析报告(GB8567——88)基于协同的在线表格forture-sheet
  10. 解决Excel中使用VBA出现microsoft visual c++ runtime错误