optisa — Determine Which Variant Instruction Set Is Optimal

Synopsis

/usr/bin/optisa instruction-set... 

Description

optisa prints the instruction set out of the ones specified in the command that performs best on this machine. Best is defined by the order in which instruction set names are returned by isalist(1). Possible values for instruction-set are given in isalist(5).

Note

optisa is preferable to uname -p or uname -m in determining which of several binary versions of a given program should be used on the given machine.

Examples

The following example displays the isalist instruction set and then uses the optisa command to find the command that performs best on a SPARCstation 10.

castle% isalist sparcv8 sparcv8-fsmuld sparcv7 sparc ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.