Anonymous user
X86-64: Difference between revisions
-mcmodel=kernel affects codegen. Using a linker script has nothing to do with codegen, since only the linker looks at the script, not the compiler. Recommending not to use it, is just plain wrong.
[unchecked revision] | [unchecked revision] |
(-mcmodel=kernel affects codegen. Using a linker script has nothing to do with codegen, since only the linker looks at the script, not the compiler. Recommending not to use it, is just plain wrong.) |
|||
Line 191:
|}
It worth noting that code models are different for architectures, as they are tied with the instruction encoding. For example, AArch64 has a "-mcmodel=tiny" too, which allows 1M addressing, unknown to x86_64. And for AArch64 "-mcmodel=small" has a 4G limitation, not 2G as for the x86_64.
== See Also ==
|