英文:
Clang: How do I see where and why an ud2 instruction was generated?
问题
Clang在我的一个非常大的项目中似乎会在某些函数调用中插入ud2
指令。然而,即使使用了-Wall
选项,它似乎也没有告诉我原因。在该项目中,我非常频繁地使用协程,但ud2
指令最终出现在非协程函数调用中。
提前感谢<br>
Tuxifan
英文:
In a really big project of mine, Clang seems to throw in ud2
instructions at some function calls. However, even with -Wall
it doesn't seem to tell me why. I am using coroutines quite heavily in that project, but the ud2
instructions end up at non-coroutine function calls.
Thanks in advance<br>
Tuxifan
答案1
得分: 0
Clang将ud2
指令放置在任何可能导致未定义行为的位置。这样做是不可行的。
英文:
Clang places ud2
instruction at whatever place that would be undefined behavior to reach. Doing this is not feasible.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论