请教xtensa下的编译问题!!
自己写makefile,碰到了以下问题,哪位大侠指教一下??
经常出现找不到“asm”,如果用__asm__,则会出现一下情况:
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160: Assembler messages:
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:459: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:501: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:965: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1046: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1167: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1280: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1394: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1744: Error: invalid last instruction for a zero-overhead loop
C:/DOCUME~1/yjp/LOCALS~1/Temp/cc0s#648d.a01160:1858: Error: invalid last instruction for a zero-overhead loop
xt-xcc ERROR: C:/usr/xtensa/XtDevToolsDE/install/tools/RB-2006.0-win32/XtensaTools/bin/xt-as.exe returned non-
zero status 1
cpu是xtensa的,如果注释的关于asm和inline相关的,则编译能通过!!
请教,谢谢!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
搞了两天终于找到了点问题,把-o2改成-o1或-o0就没问题了,不过不知道具体原因,不知哪位大侠给解释一下???