gpt4 book ai didi

c - ‘mc’ 在单词 'mcmodel=medium' 中意味着什么?

转载 作者:行者123 更新时间:2023-11-30 18:31:48 26 4
gpt4 key购买 nike

问题如标题,是缩写吗?我尝试在 Google 上搜索,但无法轻松找到答案。

最佳答案

根据GCC docs ,

These ‘-m’ switches are supported in addition to the above on x86-64 processors in 64-bit environments.

因此-m表示特定于机器的选项。然后

-mcmodel=medium

Generate code for the medium model: the program is linked in the lower 2 GB of the address space. Small symbols are also placed there. Symbols with sizes larger than -mlarge-data-threshold are put into large data or BSS sections and can be located above 2GB. Programs can be statically or dynamically linked.

所以cmodel代表“代码模型”,它决定了程序如何链接在一起的最大限制。事实上,“中”足以容纳全局对象大于 2 GB 的程序,按照大多数标准来看,这已经是巨大的了。

关于c - ‘mc’ 在单词 'mcmodel=medium' 中意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20064652/

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