Sun Studio 12 Update 1: C++ ユーザーズガイド

B.2.9 #pragma ident


#pragma ident string

ident を使用すると、実行可能ファイルの .comment 部に、string に指定した文字列を記述できます。