User`s guide
Addressing mwArrays Above the 2 GB Limit
Addressing mwArrays Above the 2 GB Limit
As of R2007b, you can now address mwArrays above the 2 GB limit on 64-bit
machines. Enable this by defining
MX_COMPAT_32_OFF in your mbu ild step.
Defining
MX_COMPAT_32_OFF causes both mw Size and mwIndex to be defined to
size_t (an unsigned type on both 32-bit and 64-bit machines). Not defining
MS_COMPAT_32_OFF (the default behavior) causes b oth mwSize and mwIndex to
be defined as signed
ints. On 64-bit machines, siz e_t is a 64-bit quantity.
For example, to turn on extended addressing for program
doublelarge.cpp,
your compile and build statements should look like this:
mcc -g -W cpplib:libutilp -T link:lib doubleup.m
mbuild -DMX_COMPAT_32_ OFF -DLARGE dou blel arge.cpp -L. -lutilp
-I. -v -g
The coding of MX_COMPAT _32_ OFF may in some instances lead to com piler
errors or warnings due to conversions between signed and unsigned quantifies
and 64-bit a n d 32-bit quantities.
See Appendix C, “C++ Utility Library Reference” for detaile d changes to
mwArray classes and m ethod signatures.
7-3