Using File Extensions
When opening a file, TotalView uses the file's extension to determine the programming language used. If you are using an unusual extension, you can manually associate your extension with a programming language by setting the TV::suffixes variable in a startup file. For more information, see the “TotalView Variables” chapter in the TotalView for HPC Reference Guide.
Note that your installation may have its own guidelines for compiling programs.