MTK工程在ARM环境下编译出现的error

问题: 对于某些C源文件,编译出错,显示Fatal error: Internal fault: 0x55af in XXX,其中行号都是最后一行,怀疑是最后没有加对于空行而导致的,但是加了空行也没解决问题.

办法:是arm的编译器的bug,去下载对应的那个848补丁升级即可.升级后的版本应该是

ARM C Compiler, ADS1.2 [Build 848]

具体解释,参考:

C/C++ Compilers

Build 848 fixes problems with access to nonstatic member functions in C++, functions with pointer-to-function parameters in C++, register stacking in Thumb code, ordering of arguments of shifted compares, float/double stores incorrectly being optimized away, a rare peephole optimization at -O2, boolean conversion in C++ code, incorrect division due to register allocation, evaluation of shift operations, corruption of SB in RWPI code, and stores to malloc'd pointers following memcpy. The C++ compiler now also allows multiple declaration specifications in conditions.

Build 844 added a new switch -Wc to suppress the #pragma warning C2813W.

Build 842 fixes some problems with code generation differences between platforms, Thumb branch/literal pool issues, code optimization, '#pragma arm section', "Internal faults" 0xd288 and 0x2696, and initializing nested structures in C++.

Build 837 fixed faults in the areas of generation of browse information, __packed bitfield initialization, code optimization, DWARF2 line tables, __packed typedefs, #pragma preprocessing, "Internal faults" 0x49de and 0x55af, and memory leaks when compiling with CodeWarrior.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值