调整可变跟踪分配长度 [英] Adjust Variable Tracking Assignment Length

查看:324
本文介绍了调整可变跟踪分配长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个发布版本中,我从GCC 4.4.7收到以下信息警告.

In a release build I'm getting the following informational warning from GCC 4.4.7.

注意:-fvar-tracking-assignments超出了可变的跟踪大小限制,请重试不带

note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without

我是否超出了变量跟踪分配所支持的变量名长度?
如果可以,是否可以调整支持的大小?

Have I exceeded the variable name length supported by variable tracking assignment?
If so, is there a way to adjust the supported size?

推荐答案

这只是编译器的注释,其中 特定功能的质量较低,因为您的功能代码 太大/太复杂,因此变量跟踪已达到哈希表槽的限制.

This is just a note from the compiler that the debug info for the particular function will have lower quality, because your code of function is too large/complex so variable tracking reached limit of hash table slots.

最大可能数以百万计,并且可以通过某种方式提高 (如--param=max-vartrack-size=60000000),但最终可能会导致 编译速度慢,否则编译器可能会占用大量内存进行计算 调试信息位置列表.

The max is likely lot of millions and it can be raised with something (like --param=max-vartrack-size=60000000) but you could end up with very slow compilation or the compiler could take very lot of memory to compute the debug info location lists.

因此,除非您在调试代码时遇到麻烦,否则请忽略该警告.

So unless you have trouble debugging the code just ignore that warning.

这篇关于调整可变跟踪分配长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆