Sun WorkShop Compiler C 5.0 User's Guide

Example of Use

The following example illustrates the use of MP C and how parallel execution can be controlled. To enable parallelization of the target program, the option can be used as follows:

% cc -fast -xO4 -xautopar example.c -o example

This generates an executable called example, which can be executed normally. For more information see "-xautopar".