问题如标题,是缩写吗? 我尝试在 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/