gpt4 book ai didi

c++ - 至少内部名称的前 31 或 63 个字符是有意义的?

转载 作者:太空宇宙 更新时间:2023-11-04 05:20:44 25 4
gpt4 key购买 nike

<分区>

这里直接引用了本书(K&R,第 2 版,第 35 页):

"At least the first 31 characters of an internal name are significant. For function names and external variables, the number may be less than 31, because external names may be used by assemblers and loaders over which the language has no control. For external names, the standard guarantees only for 6 characters and a single case."

并且在 C99 中,其内部名称没有长度限制,但只有前 63 个保证有效(§5.2.4.1 翻译限制)。

我的问题是,为什么这些限制特别是 3163?为什么这个数字具体?为什么不是 19、24 或任何其他数字?如果是实现问题,将其设为 3163 是否有好处?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com