This option tells the compiler to use a specific memory
model to generate code and store data. It can affect code
size and performance. If your program has COMMON blocks
and local data with a total size smaller than 2GB,
-mcmodel=small is sufficient. COMMONs larger than 2GB
require-mcmodel=medium or -mcmodel=large. Allocation of
memory larger than 2GB can be done with any setting of
-mcmodel.
IP-relative addressing requires only 32 bits, whereas
absolute addressing requires 64-bits. IP-relative address-
ing is somewhat faster. So, the small memory model has the
least impact on performance.
NOTE: When you specify -mcmodel=medium or -mcmodel=large,
you must also specify compiler option -shared-intel to
ensure that the correct dynamic versions of the Intel
run-time libraries are used.
Tells the linker to search for unresolved references in a
multithreaded, dynamic-link run-time library.
Partager