JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.3: C++ User's Guide     Oracle Solaris Studio 12.3 Information Library
search filter icon
search icon

Document Information


Part I C++ Compiler

1.  The C++ Compiler

1.1 New Features and Functionality of the Oracle Solaris Studio 12.3 C++ 5.12 Compiler

1.2 Special x86 Notes

1.3 Compiling for 64-Bit Platforms

1.4 Binary Compatibility Verification

1.5 Standards Conformance

1.6 Release Information

1.7 Man Pages

1.8 Native-Language Support

2.  Using the C++ Compiler

3.  Using the C++ Compiler Options

Part II Writing C++ Programs

4.  Language Extensions

5.  Program Organization

6.  Creating and Using Templates

7.  Compiling Templates

8.  Exception Handling

9.  Improving Program Performance

10.  Building Multithreaded Programs

Part III Libraries

11.  Using Libraries

12.  Using the C++ Standard Library

13.  Using the Classic iostream Library

14.  Building Libraries

Part IV Appendixes

A.  C++ Compiler Options

B.  Pragmas



1.3 Compiling for 64–Bit Platforms

Use the —m32 option to compile for the ILP32 32–bit model. Use the —m64 option to compile for the LP64 64–bit model.

The ILP32 model specifies that C++-language int, long, and pointer data types are all 32 bits wide. The LP64 model specifies that long and pointer data types are all 64-bits wide. The Oracle Solaris OS and Linux OS also support large files and large arrays under the LP64 memory model.

When you compile with -m64, the resulting executable works only on 64-bit UltraSPARC or x86 processors under the Oracle Solaris OS or Linux OS running a 64-bit kernel. Compilation, linking, and execution of 64-bit objects can only take place in an Oracle Solaris OS or Linux OS that supports 64-bit execution.