Compiling and linking a program with MASS

To build an application that calls the functions in the MASS libraries, link your executable file with the options described in this section.

The options follows:
  • Link with the -lmass option when building an application that calls the functions in the scalar MASS library.
  • Link with one of the -lmass_simd, -lmass_simdp7, -lmass_simdp8, -lmass_simdp9, or -lmass_simdp10 options when building an application that calls the functions in the SIMD MASS libraries.
  • Link with one of the -lmassv, -lmassvp7, -lmassvp8, -lmassvp9, or -lmassvp10 options when building an application that calls the functions in the vector MASS libraries.

You can link the scalar, SIMD, and vector MASS libraries into the same application.

For example, if the MASS libraries are installed in the default directory, you can use one of the following commands:
Link executable progc with scalar library libmass.a and vector library libmassvp10.a
ibm-clang -mcpu=power10 progc.c -o progc -lmass -lmassvp10
Link executable progc with SIMD library libmass_simdp10.a
ibm-clang -mcpu=power10 progc.c -o progc -lmass_simdp10