Compiling and linking a program with MASS
To compile an application that calls the functions in the scalar, SIMD, or vector MASS libraries, specify mass, and/or one of mass_simdp7, mass_simdp8, and/or one of massv, massvp4, massvp5, massvp6, massvp7, massvp8 on the -l linker option.
For example, if the MASS libraries are installed in the
default directory, you can use one of the following commands:
- Link object file progc with scalar library libmass.a and vector library libmassvp8.a
-
xlc -qarch=pwr8 progc.c -o progc -lmass -lmassvp8
- Link object file progc with SIMD library libmass_simdp8.a
-
xlc -qarch=pwr8 progc.c -o progc -lmass_simdp8