Sun Studio 12: C User's Guide

4.3.25 -m32|-m64

Specifies the memory model for the program being analyzed. Also searches for lint libraries that correspond to the selected memory model (32-bit/64-bit).

Use -m32 to verify 32-bit C programs and -m64 to verify 64-bit C programs.

The ILP32 memory model (32-bit int, long, pointer data types) is the default on all Solaris platforms and on Linux platforms that are not 64-bit enabled. The LP64 memory model (64-bit long, pointer data types) is the default on Linux platforms that are 64-bit enabled. -m64 is permitted only on platforms that are enabled for the LP64 model.

Note that in previous compiler releases, the memory model, ILP32 or LP64, was implied by the choice of the -Xarch option. Starting with the Sun Studio 12 compilers, this is no longer the case. On most platforms, just adding -m64 to the command line is sufficient for linting 64-bit programs.

See the sections following this list of lint options for more information on the predefined macros.