C++没有TypeInfo名称的RTTI
在我的C ++应用程序中,我将RTTI用于Dynamic_cast等。浏览编译的二进制文件,我注意到生成了很多数据以存储类型Intyfo structs的类型名称。既然我根本不使用类型名称,那么是否有一种方法可以禁用RTTI的这一部分,同时仍允许Dynamic_cast工作?
编辑
我正在使用GCC(G ++)进行手臂
臂无abi-g ++。EXE(STM32的GNU工具10.3-2021.10.20211105-1100) 10.3.1 20210824(Release)
In my C++ application, I use RTTI for dynamic_cast and such. Looking through the compiled binary, I notice that quite a bit of data is generated to store type names for typeinfo structs. Since I don't use type names at all, is there are a way to disable this part of RTTI while still allowing dynamic_cast to work?
EDIT
I am using GCC (G++) for ARM
arm-none-eabi-g++.exe (GNU Tools for STM32 10.3-2021.10.20211105-1100)
10.3.1 20210824 (release)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论